Skip to content

web: do not skip `__typename` generation, required for Apollo Client mocking

Warren Gifford requested to merge vb/graphql-codegen-typename into main

Created by: valerybugakov

Context

__typename property is required for Apollo Client to generate a valid cache. Without this property in generated types, it's impossible to add correct mocks without manual type amendment. This PR enables __typename property generation.

Changes

  • Graphql codegen now generates optional __typename field.

Merge request reports

Loading