-
Notifications
You must be signed in to change notification settings - Fork 0
/
maps.toml
77 lines (68 loc) · 1.3 KB
/
maps.toml
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
72
73
74
75
76
77
# =================================================
# Fragments
# =================================================
[fragments]
FRAGMENT_VISUALIZATION_BLOB = """
fragment FRAGMENT_VISUALIZATION_BLOB on VisualizationBlob {
hierarchyId
octreeId
metadataId
}
"""
FRAGMENT_ANNOTATION = """
fragment FRAGMENT_ANNOTATION on Annotation {
id
# HTML text
text
position
}
"""
FRAGMENT_AFFORDANCE = """
fragment FRAGMENT_AFFORDANCE on Affordance {
id
label
position
rotation
scale
}
"""
FRAGMENT_MAP = """
fragment FRAGMENT_MAP on Map {
id
label
description
status
data
thumbnailId
visualization { ...FRAGMENT_VISUALIZATION_BLOB }
exportedMapId
annotations { ...FRAGMENT_ANNOTATION }
affordances { ...FRAGMENT_AFFORDANCE }
sessions { ...FRAGMENT_SESSION }
workflows { ...FRAGMENT_WORKFLOW }
createdTimestamp
lastUpdatedTimestamp
}
"""
# =================================================
# Operations
# =================================================
[operations]
QUERY_GET_MAPS = """
query QUERY_GET_MAPS($userId: ID!) {
users (where: {id: $userId}) {
maps {
...FRAGMENT_MAP
}
}
}
"""
QUERY_GET_MAP = """
query QUERY_GET_MAP($userId: ID!, $mapId: ID!) {
users (where: {id: $userId}) {
maps (where: {id: $mapId}) {
...FRAGMENT_MAP
}
}
}
"""