Skip to content
New issue

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

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

Closed
khushail opened this issue Mar 17, 2023 · 1 comment
Closed

Comments

@khushail
Copy link

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
Copy link
Author

Opened with wrong team. My Bad!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant