rano/graph/account.graphql

28 lines
354 B
GraphQL

extend type Mutation {
"""
Verify email token
"""
accountVerifyEmail(token: String): Boolean!
"""
User account login
"""
accountLogin(email: String!, pwd: String!): AuthUser!
"""
User account logout
"""
accountLogout: Boolean!
}
extend type Query {
me: AuthUser
}
type AuthUser {
id: UID!
email: String!
name: String!
roleID: Int!
}