graphql.identity.graphqls Maven / Gradle / Ivy
extend type Query {
currentUser: User
users: [User]!
roles: [Role]!
}
extend type Mutation {
login(username: String!, password: String!): String!
}
type User {
id: ID!
username: String!
emailAddress: String
familyName: String
givenName: String
isAdmin: Boolean!
roles: [Role]!
}
type Role {
name: ID!
}