18
Total Commands
100%
Free Access
⚡
Lightning Fast
Available Commands
Click on any command to copy it instantly
18 commands available
18 of 18
Resources
Learn GraphQL
Master GraphQL query language
curl -X POST http://localhost:4000/graphql -H 'Content-Type: application/json' -d '{"query":"{ __schema { types { name } } }"}'
graphql
schema
introspection
curl -X POST http://localhost:4000/graphql -H 'Content-Type: application/json' -d '{"query":"{ users { id name email } }"}'
graphql
users
query
curl -X POST http://localhost:4000/graphql -H 'Content-Type: application/json' -d '{"query":"{ user(id: 1) { id name email } }"}'
graphql
user
query
curl -X POST http://localhost:4000/graphql -H 'Content-Type: application/json' -d '{"query":"mutation { addUser(name: \"Alice\", email: \"alice@example.com\") { id name email } }"}'
graphql
user
mutation
curl -X POST http://localhost:4000/graphql -H 'Content-Type: application/json' -d '{"query":"mutation { updateUser(id: 1, name: \"Alice Updated\") { id name email } }"}'
graphql
user
mutation
curl -X POST http://localhost:4000/graphql -H 'Content-Type: application/json' -d '{"query":"mutation { deleteUser(id: 1) { id } }"}'
graphql
user
mutation
curl -X POST http://localhost:4000/graphql -H 'Content-Type: application/json' -d '{"query":"{ posts { id title content author { id name } } }"}'
graphql
posts
query
curl -X POST http://localhost:4000/graphql -H 'Content-Type: application/json' -d '{"query":"{ post(id: 1) { id title content author { name } } }"}'
graphql
post
query
curl -X POST http://localhost:4000/graphql -H 'Content-Type: application/json' -d '{"query":"mutation { addPost(title: \"New Post\", content: \"Content here\", authorId: 1) { id title } }"}'
graphql
post
mutation
curl -X POST http://localhost:4000/graphql -H 'Content-Type: application/json' -d '{"query":"mutation { updatePost(id: 1, title: \"Updated Title\") { id title } }"}'
graphql
post
mutation
curl -X POST http://localhost:4000/graphql -H 'Content-Type: application/json' -d '{"query":"mutation { deletePost(id: 1) { id } }"}'
graphql
post
mutation
curl -X POST http://localhost:4000/graphql -H 'Content-Type: application/json' -d '{"query":"{ users(search: \"Alice\") { id name email } }"}'
graphql
search
users
curl -X POST http://localhost:4000/graphql -H 'Content-Type: application/json' -d '{"query":"{ posts(search: \"GraphQL\") { id title content } }"}'
graphql
search
posts
curl -X POST http://localhost:4000/graphql -H 'Content-Type: application/json' -d '{"query":"{ users { id name posts { id title } } }"}'
graphql
nested
query
curl -X POST http://localhost:4000/graphql -H 'Content-Type: application/json' -d '{"query":"{ posts(limit: 5, offset: 10) { id title } }"}'
graphql
pagination
query
curl -X POST http://localhost:4000/graphql -H 'Content-Type: application/json' -d '{"query":"fragment userFields on User { id name email } query { users { ...userFields } }"}'
graphql
fragments
query
curl -X POST http://localhost:4000/graphql -H 'Content-Type: application/json' -d '{"query":"{ admin: user(id:1) { name } guest: user(id:2) { name } }"}'
graphql
aliases
query
curl -X POST http://localhost:4000/graphql -H 'Content-Type: application/json' -d '{"query":"query($showEmail:Boolean!) { users { name email @include(if:$showEmail) } }","variables":"{\"showEmail\":true}"}'
graphql
directives
query
Missing a command?
Help us improve this collection by suggesting commands that should be added. Your contributions help the entire developer community!