Skip to content

migrated to using graphQL codegen + made all fragment have unique names

Administrator requested to merge twop/better-gql-op-codegen into main

Created by: twop

  • killed our custom "craft" code based on ts-graphql-plugin with fire
  • added codegen of graphQL operations via GraphQL code generator
  • made all fragments have unique names
  • inlined "fragment" that caused issue for parsing
  • wrote custom plugin for GraphQL code generator
  • replaced old generation with it
  • fixed a type error in one of the tests

not done (not sure if it should be): didn't integrate into build and watch commands. running eslint on generated files takes ridiculous amount of time, not sure what is the best option here

run all integration tests, everything passes and typechecks

closes: https://github.com/sourcegraph/sourcegraph/issues/12177

Merge request reports

Loading