-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqueries.graphql
39 lines (35 loc) · 941 Bytes
/
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
# SPDX-FileCopyrightText: 2023 Magenta ApS <https://magenta.dk>
# SPDX-License-Identifier: MPL-2.0
query GetEngagement($engagement_uuid: UUID!, $itsystem_user_key: String!) {
engagements(filter: {uuids: [$engagement_uuid]}) {
objects {
current {
validity {
from
to
}
# Contains the AD job description
extension_2
# Contains the output of this integration
extension_3
is_primary
job_function {
name
user_key
}
person {
itusers(filter: {itsystem: {user_keys: [$itsystem_user_key]}}) {
user_key
}
}
}
}
}
}
mutation UpdateExtensionField($uuid: UUID!, $from_date: DateTime!, $to_date: DateTime, $extension_3: String) {
engagement_update(
input: {uuid: $uuid, validity: {from: $from_date, to: $to_date}, extension_3: $extension_3}
) {
uuid
}
}