timkendall / tql

A GraphQL query builder for TypeScript. Avoid the pain of codegen.
https://tql.dev
MIT License
133 stars 6 forks source link

Codegen assumes `schema` in SDL #91

Closed timkendall closed 2 years ago

timkendall commented 2 years ago

Right now our codegen assumes an explicit schema { query: Query, mutation: Mutation, subscription: Subscription } is defined in the provided SDL (which it is not when introspecting GraphQL HTTP API's generally). We rely on this to generate our ISchema interface used to resolve types.