-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
History.gql
52 lines (44 loc) · 886 Bytes
/
History.gql
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
input AllHistoryFilter {
uuidList: [ID]
userUuid: ID
fromDate: Date
toDate: Date
}
input AreaHistoryFilter {
areaId: ID
}
input OrganizationHistoryFilter {
orgId: MUUID
}
type UpdateDescription {
updatedFields: [String]
}
type Change {
changeId: ID!
dbOp: String!
fullDocument: Document
updateDescription: UpdateDescription
}
union Document = Area | Climb | Organization
type History {
id: ID!
editedBy: ID!
editedByUser: String
operation: String!
createdAt: Date!
changes: [Change]
}
type Query {
getChangeHistory(filter: AllHistoryFilter): [History]
getAreaHistory(filter: AreaHistoryFilter): [History]
getOrganizationHistory(filter: OrganizationHistoryFilter): [History]
}
"""Author metadata"""
type AuthorMetadata {
createdAt: Date
createdBy: ID
createdByUser: String
updatedAt: Date
updatedBy: ID
updatedByUser: String
}