rano/graph/account.graphql

28 lines
354 B
GraphQL
Raw Normal View History

2024-11-01 19:55:30 +05:30
extend type Mutation {
2024-11-17 22:28:29 +05:30
"""
Verify email token
"""
accountVerifyEmail(token: String): Boolean!
"""
User account login
"""
accountLogin(email: String!, pwd: String!): AuthUser!
"""
User account logout
"""
accountLogout: Boolean!
2024-11-01 19:55:30 +05:30
}
2024-11-01 23:19:56 +05:30
extend type Query {
me: AuthUser
}
type AuthUser {
2024-11-17 22:28:29 +05:30
id: UID!
2024-11-01 23:19:56 +05:30
email: String!
2024-11-17 22:28:29 +05:30
name: String!
2024-11-01 23:19:56 +05:30
roleID: Int!
}