26 lines
378 B
GraphQL
26 lines
378 B
GraphQL
type User {
|
|
id: ID!
|
|
phone: String
|
|
email: String
|
|
type: String
|
|
status: String
|
|
verified: Boolean @goField(forceResolver: true)
|
|
password: String
|
|
token: String
|
|
}
|
|
|
|
input CreateUserInput {
|
|
email: String
|
|
phone: String
|
|
status: Status
|
|
password: String!
|
|
}
|
|
|
|
extend type Query {
|
|
users: [User]
|
|
}
|
|
|
|
extend type Mutation {
|
|
createUser(input: CreateUserInput!): User
|
|
}
|