graphql / graphql-spec

GraphQL is a query language and execution engine tied to any backend service.
https://spec.graphql.org
14.31k stars 1.13k forks source link

(Graphql-schema) Cannot query field "closeDiscussion" on type "Mutation" #1021

Closed khushail closed 1 year ago

khushail commented 1 year ago

Hi,

Github graphql recently added 'closeDiscussion' tab where discussions can be closed as OUTDATED, RESOLVED or DUPLICATE. I have a scenario where I need to close the current discussion as resolved or outdated based on reply. I have written this mutation - mutation closeDiscussion($discussionId: ID!) { closeDiscussion(input: {discussionId: $discussionId, reason: RESOLVED}) { clientMutationId } }

On running npm run codegen, I am getting this error - GraphQL Document Validation failed with 1 errors; Error 0: Cannot query field "closeDiscussion" on type "Mutation". Did you mean "createDiscussion", "deleteDiscussion", "updat…"

I have updated graphql schema using this command - npm update @octokit/graphql-schema But graphql-schema is not updated with 'closeDiscussion()'

Could you please help here? Thanks

khushail commented 1 year ago

Opened with wrong team. My Bad!