-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathusers.graphqls
45 lines (40 loc) · 992 Bytes
/
users.graphqls
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
enum Gender {
male
female
unknown
}
type User {
id: ID
anonymous: Boolean!
bccMember: Boolean!
audience: String
email: String
emailVerified: Boolean! @goField(forceResolver: true)
roles: [String!]!
analytics: Analytics!
gender: Gender!
firstName: String!
displayName: String!
completedRegistration: Boolean! @goField(forceResolver: true)
}
type UserCollection {
id: UUID!
title: String!
# updatedAt: Date!
# createdAt: Date!
entries(first: Int, offset: Int): UserCollectionEntryPagination! @goField(forceResolver: true)
}
union UserCollectionEntryItem = Show | Episode | Short
type UserCollectionEntry {
id: UUID!
# sort: Int!
# updatedAt: Date!
# createdAt: Date!
item: UserCollectionEntryItem @goField(forceResolver: true)
}
type UserCollectionEntryPagination implements Pagination {
total: Int!
offset: Int!
first: Int!
items: [UserCollectionEntry!]!
}