0

When using type generators like apollo client:codegen or others, how do you generate the types for things like this:


const query = gql`
        query ${model}Aggregate($where: ${typename}_bool_exp) {...} `

Am getting an error : Error: Syntax error in file:///Users/.../gqls/aggregates.ts: Syntax Error: Expected Name, found String " : ".

For context, my code has query builders that rely on dynamic names so above could be query ClientAggregate() or query InvoiceAggregate()... etc

O. Mills
  • 216
  • 2
  • 10

0 Answers0