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

Added note for mutation conventions and removed erros #4523

Merged
merged 2 commits into from
Dec 6, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added note for mutation conventions and removed erros
  • Loading branch information
PascalSenn committed Dec 4, 2021
commit 79fa02635affbb0aadd54874827dbdfe537ca94f
4 changes: 0 additions & 4 deletions website/src/docs/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,6 @@
{
"path": "relay",
"title": "Relay"
},
{
"path": "errors",
"title": "Errors"
}
]
},
Expand Down
2 changes: 2 additions & 0 deletions website/src/docs/hotchocolate/defining-a-schema/mutations.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ services

# Conventions

> ⚠️ Experimental Warning: This feature is not yet finished and only available in previews. The API is not finalizied and will change until its release.

In GraphQL, it is best practice to have a single argument on mutations called `input`, and each mutation should return a payload object.

```graphql
Expand Down