core/schema/schema.auth.graphql
2021-07-01 21:26:04 +03:00

38 lines
499 B
GraphQL

type Role {
id: Int!
name: String!
}
type User {
createdAt: DateTime!
email: String
emailConfirmed: Boolean
id: Int!
muted: Boolean
rating: Int
roles: [Role!]!
updatedAt: DateTime!
username: String
userpic: String
userpicId: String
wasOnlineAt: DateTime
}
input registerUserInput {
email: String!
username: String!
password: String!
}
type signInPayload {
status: Boolean!
error: String
token: String
}
type signOutPayload {
status: Boolean!
error: String
}