-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqueries.graphql
71 lines (66 loc) · 1.13 KB
/
queries.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
59
60
61
62
63
64
65
66
67
68
69
70
71
# SPDX-FileCopyrightText: Magenta ApS <https://magenta.dk>
# SPDX-License-Identifier: MPL-2.0
query getManagerData($uuids: [UUID!]) {
managers(filter: { uuids: $uuids, from_date: null, to_date: null }) {
objects {
validities {
employee_uuid
org_unit_uuid
validity {
to
from
}
}
}
}
}
query getUserData($uuids: [UUID!]) {
employees(filter: { uuids: $uuids }) {
objects {
validities {
name
addresses {
value
address_type {
scope
}
}
engagements {
org_unit_uuid
}
}
}
}
}
query getRootOrg {
org {
uuid
}
}
query getOrgUnitData($uuids: [UUID!]) {
org_units(filter: { uuids: $uuids }) {
objects {
validities {
name
user_key
parent_uuid
managers {
employee_uuid
}
}
}
}
}
query getAddressData($uuids: [UUID!]) {
addresses(filter: { uuids: $uuids }) {
objects {
current {
name
employee_uuid
address_type {
scope
}
}
}
}
}