Skip to main content

Queries

Queries in GraphQL are used to fetch data without modifying it.

Retrieve the list of users

query {
users {
edges {
node {
id
firstName
lastName
email
}
}
}
}

Retrieve the basic data of a single user

query {
user(id: 123) {
id
firstName
lastName
email
}
}