19 lines
252 B
GraphQL
19 lines
252 B
GraphQL
extend type Mutation {
|
|
login(username: String!, email: String!): Boolean!
|
|
logout: Boolean!
|
|
}
|
|
|
|
extend type Query {
|
|
"""
|
|
me, is current AuthUser info
|
|
"""
|
|
me: AuthUser
|
|
}
|
|
|
|
type AuthUser {
|
|
id: ID!
|
|
email: String!
|
|
displayName: String!
|
|
roleID: Int!
|
|
}
|