-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.graphql
More file actions
42 lines (34 loc) · 809 Bytes
/
schema.graphql
File metadata and controls
42 lines (34 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
### This file was generated by Nexus Schema
### Do not make changes to this file directly
"""Errors that return to submitted forms"""
type ErrorBody {
field: String!
message: String!
status: Int!
}
"""Errors that return to submitted forms"""
type FieldError {
error: ErrorBody!
success: Boolean!
}
type Mutation {
"""This schema is for creating a new user"""
createUser(confirmPassword: String!, email: String!, password: String!, username: String!): UserUnion!
}
type Query {
users: [User]!
}
"""Successful user response"""
type SuccessResponse {
success: Boolean!
user: User!
}
"""Basic user type"""
type User {
email: String!
id: String!
success: Boolean!
username: String!
}
"""Union type to return either user or error"""
union UserUnion = FieldError | SuccessResponse