authorizer/server/graph/schema.graphqls

73 lines
1.1 KiB
GraphQL
Raw Normal View History

# GraphQL schema example
#
# https://gqlgen.com/getting-started/
2021-07-12 18:22:16 +00:00
scalar Int64
2021-07-12 18:22:16 +00:00
type User {
id: ID!
2021-07-12 18:22:16 +00:00
email: String!
SignUpMethod: String!
firstName: String
lastName: String
emailVerifiedAt: Int64
password: String
image: String
createdAt: Int64
updatedAt: Int64
}
2021-07-12 18:22:16 +00:00
type VerificationRequest {
id: ID!
2021-07-12 18:22:16 +00:00
identifier: String
token: String
email: String
expires: Int64
createdAt: Int64
updatedAt: Int64
}
type Error {
message: String!
reason: String!
}
type LoginResponse {
2021-07-12 18:22:16 +00:00
message: String!
accessToken: String
2021-07-12 18:22:16 +00:00
user: User
}
type BasicAuthSignupResponse {
2021-07-12 18:22:16 +00:00
message: String!
user: User
}
2021-07-12 18:22:16 +00:00
input BasicAuthSignupInput {
firstName: String
lastName: String
email: String!
password: String!
cofirmPassword: String!
image: String
}
input LoginInput {
2021-07-12 18:22:16 +00:00
email: String!
password: String!
}
input VerifySignupTokenInput {
token: String!
}
type Mutation {
2021-07-14 19:09:48 +00:00
verifySignupToken(params: VerifySignupTokenInput!): LoginResponse!
2021-07-12 18:22:16 +00:00
basicAuthSignUp(params: BasicAuthSignupInput!): BasicAuthSignupResponse!
login(params: LoginInput!): LoginResponse!
}
type Query {
users: [User!]!
updateToken: LoginResponse
2021-07-12 18:22:16 +00:00
}