GraphQL Injection: Mutations
A mutation is an operation used to change data on the server (create, update, or delete something). Mutations work like function, you can use them to interact with the GraphQL endpoint.
mutation{
signIn(login:"Admin", password:"secretp@ssw0rd"){
token
}
}
mutation{
addUser(id:"1", name:"Dan Abramov", email:"dan@dan.com") {
id
name
email
}
}Warning: Mutations usually won't work with GET. graphql/graphql-over-http, issue #123
Comments
No comments yet.