schema {
query: Query
mutation: Mutation
}
type Query {
tasks: [Task]!
}
type Mutation {
addTask(text: String!): [Task]!
}
type Task {
id: ID
text: String!
finished: Boolean,
assignee: User
}
type User {
id: ID
name: String!
}
Server
Get only what you need
query getUnfinishedTasks {
todos(finished: false) {
text
}
}