-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
58 lines (50 loc) · 1.01 KB
/
schema.graphql
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# This file was generated based on ".graphqlconfig". Do not edit manually.
schema {
query: Query
mutation: Mutation
}
type Mutation {
createUser(input: CreateUserInput!): User!
updateUser(_id: ID!, input: UpdateUserInput): User!
}
type PersonName {
first: String
initials: String
last: String
middle: String
}
type ProfileImage {
srcLarge: String
srcMedium: String
srcSmall: String
srcThumb: String
srcXLarge: String
}
type Query {
user(email: String!): User
}
type User {
"""
Querying mongodb _id's (@type ObjectId) result in an error.
@see https://github.com/apollographql/apollo-server/issues/1633
@see https://github.com/apollographql/apollo-server/issues/1649#issuecomment-420840287
_id: String
"""
email: String!
fullName: String
name: PersonName
permissionLevel: Int
profileImage: ProfileImage
}
input CreateUserInput {
email: String!
password: String!
}
input UpdateUserInput {
email: String
firstName: String
lastName: String
middleName: String
permissionLevel: Int
profileImage: String
}