# src/schema.graphql | |
type Query { | |
users: [User!]! | |
} | |
type User { | |
id: ID! | |
name: String! | |
email: String! | |
password: String! | |
} | |
type Mutation { | |
signup(email: String!, password: String!, name: String!): AuthPayload | |
} | |
type AuthPayload { | |
token: String | |
user: User | |
} |