A tool for generating code based on a GraphQL schema and GraphQL operations (query/mutation/subscription), with flexible support for custom plugins.
68ea5d4
Thanks @renovate! - dependencies updates:
moment@~2.30.0
↗︎ (from ~2.29.1
, in dependencies
)cd60e14
Thanks @Sojaner! - Omit __typename
from being added on the root node of a subscription when using addTypenameSelectionDocumentTransform
with documentTransforms since a single root node is expected and the code generator fails because of that (refer to https://spec.graphql.org/draft/#sec-Single-root-field)ed9c205
Thanks @henryqdineen! - properly handle aliased conditionals920b443
, ed9c205
]:
920b443
, ed9c205
]:
#9842 ed9c205
Thanks @henryqdineen! - properly handle aliased conditionals
Updated dependencies [920b443
, ed9c205
]:
920b443
, ed9c205
]:
920b443
, ed9c205
]:
920b443
, ed9c205
]:
920b443
, ed9c205
]:
920b443
, ed9c205
]:
#9627 422e2a7
Thanks @renovate! - dependencies updates:
[email protected]
↗︎ (from 13.3.1
, in dependencies
)#9851 217ed56
Thanks @renovate! - dependencies updates:
[email protected]
↗︎ (from 13.3.6
, in dependencies
)53f270a
]:
53f270a
Thanks @productdevbook! - path starts with "#"53f270a
]:
53f270a
]:
53f270a
]:
53f270a
]:
53f270a
]:
53f270a
]:
53f270a
]:
53f270a
]:
Updated dependencies [4e69568
]:
Updated dependencies [4e69568
]:
Updated dependencies [4e69568
]:
Updated dependencies [4e69568
]:
Updated dependencies [4e69568
]:
Updated dependencies [4e69568
]:
Updated dependencies [4e69568
]:
Updated dependencies [4e69568
]:
Updated dependencies [4e69568
]:
Updated dependencies [4e69568
]:
Updated dependencies [4e69568
]:
Updated dependencies [4e69568
]:
Updated dependencies [4e69568
]:
Updated dependencies [4e69568
]:
Updated dependencies [4e69568
]:
Updated dependencies [4e69568
]:
7718a8113
Thanks @maclockard! - Respect avoidOptionals when all arguments are optional7718a8113
]:
7718a8113
]:
7718a8113
]:
#9673 7718a8113
Thanks @maclockard! - Respect avoidOptionals when all arguments are optional
Updated dependencies [7718a8113
]:
7718a8113
]:
7718a8113
]:
#9557 48ddaeae1
Thanks @konomae! - Add eslint-disable comment to fragment-masking.ts
Updated dependencies [7718a8113
]:
7718a8113
]:
#9513 fdd19d24d
Thanks @cichelero! - Update yaml dependency to 2.3.1
Updated dependencies [bb1e0e96e
]:
#9562 5beee9794
Thanks @n1ru4l! - Add the addTypenameSelectionDocumentTransform
for automatically adding __typename
selections to all objct type selection sets.
This is useful for GraphQL Clients such as Apollo Client or urql that need typename information for their cache to function.
Example Usage
import { addTypenameSelectionDocumentTransform } from '@graphql-codegen/client-preset';
import { CodegenConfig } from "@graphql-codegen/cli";
const config: CodegenConfig = {
schema: "YOUR_GRAPHQL_ENDPOINT",
documents: ["./**/*.{ts,tsx}"],
ignoreNoDocuments: true,
generates: {
"./gql/": {
preset: "client",
plugins: [],
presetConfig: {
persistedDocuments: true,
},
documentTransforms: [addTypenameSelectionDocumentTransform],
},
},
};
export default config;
bb1e0e96e
]:
#9497 2276708d0
Thanks @eddeee888! - Revert default ID scalar input type to string
We changed the ID Scalar input type from string
to string | number
in the latest major version of typescript
plugin. This causes issues for server plugins (e.g. typescript-resolvers) that depends on typescript
plugin. This is because the scalar type needs to be manually inverted on setup which is confusing.
2276708d0
]:
2276708d0
]:
#9497 2276708d0
Thanks @eddeee888! - Revert default ID scalar input type to string
We changed the ID Scalar input type from string
to string | number
in the latest major version of typescript
plugin. This causes issues for server plugins (e.g. typescript-resolvers) that depends on typescript
plugin. This is because the scalar type needs to be manually inverted on setup which is confusing.
Updated dependencies [2276708d0
]:
#9497 2276708d0
Thanks @eddeee888! - Revert default ID scalar input type to string
We changed the ID Scalar input type from string
to string | number
in the latest major version of typescript
plugin. This causes issues for server plugins (e.g. typescript-resolvers) that depends on typescript
plugin. This is because the scalar type needs to be manually inverted on setup which is confusing.
Updated dependencies [2276708d0
]:
2276708d0
]:
#9497 2276708d0
Thanks @eddeee888! - Revert default ID scalar input type to string
We changed the ID Scalar input type from string
to string | number
in the latest major version of typescript
plugin. This causes issues for server plugins (e.g. typescript-resolvers) that depends on typescript
plugin. This is because the scalar type needs to be manually inverted on setup which is confusing.
Updated dependencies [2276708d0
]:
#9497 2276708d0
Thanks @eddeee888! - Revert default ID scalar input type to string
We changed the ID Scalar input type from string
to string | number
in the latest major version of typescript
plugin. This causes issues for server plugins (e.g. typescript-resolvers) that depends on typescript
plugin. This is because the scalar type needs to be manually inverted on setup which is confusing.
Updated dependencies [2276708d0
]:
2276708d0
]:
#9479 0aa444b5d
Thanks @gilgardosh! - dependencies updates:
graphql-config@^5.0.2
↗︎ (from ^5.0.1
, in dependencies
)#9479 0aa444b5d
Thanks @gilgardosh! - Update graphql-config to v^5.0.2
#9267 183749346
Thanks @milesrichardson! - Fix watch mode to listen to longest common directory prefix of relevant files, rather than only files below the current working directory (fixes #9266).
#9280 ca1d72c40
Thanks @saihaj! - fix the default output directory for init command
#9301 386cf9044
Thanks @wassim-k! - Fix fragment imports for near-operation-file with graphQLTag
#9231 402cb8ac0
Thanks @eddeee888! - Implement resolversNonOptionalTypename for mapper cases
386cf9044
, 402cb8ac0
]:
386cf9044
, 402cb8ac0
]:
386cf9044
, 402cb8ac0
]:
#9231 402cb8ac0
Thanks @eddeee888! - Implement resolversNonOptionalTypename for mapper cases
Updated dependencies [386cf9044
, 402cb8ac0
]:
386cf9044
, 402cb8ac0
]:
386cf9044
, 402cb8ac0
]:
386cf9044
, 402cb8ac0
]:
386cf9044
, 402cb8ac0
]: