Skip to content

actually generate TS schema from GraphQL

Administrator requested to merge rvt/fix-schema-ts into main

Created by: rvantonder

After a long time debugging, I couldn't understand why new GQL definitions didn't show up in schema.ts. I realized a schema.ts is being generated, but not where the current one lives.

If we moved it under src/graphql, we should probably be generating it there. I updated the script and after yarn generate, the schema.ts is updated with a lot of things that were missing before... (and probably unused, but nevertheless, missing).

addendum: apparently the build looks for schema.ts under src, but it still doesn't keep the one in graphql in sync

Test plan

Generates file as expected, dev experience issue.

Merge request reports

Loading