Skip to content

Rework GraphQL mutations#3046

Merged
EnricoMi merged 3 commits intoPyGithub:mainfrom
EnricoMi:graphql-rework-mutations
Oct 28, 2024
Merged

Rework GraphQL mutations#3046
EnricoMi merged 3 commits intoPyGithub:mainfrom
EnricoMi:graphql-rework-mutations

Conversation

@EnricoMi
Copy link
Copy Markdown
Collaborator

@EnricoMi EnricoMi commented Sep 18, 2024

This contains the following breaking changes:

  • use mutation name as given in Github GraphQL documentation
  • remove capitalized mutation name from mutation request
  • rename variables argument to mutation_input
  • rename output argument to output_schema
  • return response data according to output schema (drop outer data.mutationName path)

@EnricoMi EnricoMi changed the title Rework GraphQl mutations Rework GraphQL mutations Sep 18, 2024
Copy link
Copy Markdown
Contributor

@tiangolo tiangolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took the liberty of reviewing this. I clonned the branch locally and followed the code line by line, and it all makes sense to me. LGTM! 🚀

- use mutation name as given in Github GraphQL documentation
- remove capitalized mutation name from mutation request
- rename variables argument to muation_input
- rename output argument to output_schema
- give output schema with outer curly brackets
- return response data according to output schema (drop outer data.mutationName path)
@EnricoMi EnricoMi force-pushed the graphql-rework-mutations branch from ba60442 to 2b210e2 Compare October 28, 2024 20:08
@EnricoMi EnricoMi merged commit 2722225 into PyGithub:main Oct 28, 2024
@EnricoMi EnricoMi deleted the graphql-rework-mutations branch October 28, 2024 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants