go-mongo/gql/user.gql
2025-05-31 18:38:18 +03:00

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
}