type Query {
users: [User] @all
user(id: ID @eq): User @find
}
type User {
id: ID,
email: String,
name: String,
password: String
}
type Mutation {
createUser(name: String!, email: String!, password: String!): User! @create
updateUser(id: ID!, name: String!, email:String!): User! @update
deleteUser(id: ID!): User @delete
}
|