We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For the given GraphQL executable document:
const AllFilmsWithVariablesQuery = graphql(/* GraphQL */ ` query allFilmsWithVariablesQuery($first: Int!) { allFilms(first: $first) { edges { node { ...FilmItem } } } } `);
The following does not result in a TypeScript error:
executor({ document: AllFilmsWithVariablesQuery, })
As one of the variables is declared as non-nullable the value must be provided. This can be implemented like the following: https://github.com/dotansimha/graphql-code-generator/blob/676063c1e62017398deeb580278448935a0da3df/examples/typescript-esm/src/executeOperation.ts#L8-L9
graphql-request in comparison handles this case and behaves as expected, yielding a better DX.
graphql-request
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For the given GraphQL executable document:
The following does not result in a TypeScript error:
As one of the variables is declared as non-nullable the value must be provided. This can be implemented like the following:
https://github.com/dotansimha/graphql-code-generator/blob/676063c1e62017398deeb580278448935a0da3df/examples/typescript-esm/src/executeOperation.ts#L8-L9
graphql-request
in comparison handles this case and behaves as expected, yielding a better DX.The text was updated successfully, but these errors were encountered: