-
-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathOrganization.gql
More file actions
65 lines (56 loc) · 1.57 KB
/
Organization.gql
File metadata and controls
65 lines (56 loc) · 1.57 KB
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
type Query {
organization(muuid: MUUID): Organization
organizations(filter: OrgFilter, sort: OrgSort, limit: Int, offset: Int): [Organization]
}
"A climbing area, wall or crag"
type Organization {
id: ID!
"""
Type of organization. Currently we only support local climbing organizations, which
are associated with certain climbing areas. In future there may be advocacy groups
like the Access Fund or interest groups like the American Alpine Club that are not
associated with any specific climbing areas.
"""
orgType: String!
"We use orgId for identification of organizations. The id field is used in internal database relations."
orgId: MUUID!
associatedAreaIds: [MUUID]
excludedAreaIds: [MUUID]
"Name of organization to be displayed on the site."
displayName: String!
content: OrganizationContent
createdAt: Date
createdBy: MUUID
updatedAt: Date
updatedBy: MUUID
}
type OrganizationContent {
website: String
email: String
donationLink: String
instagramLink: String
facebookLink: String
hardwareReportLink: String
description: String
}
input OrgSort {
displayName: Int
updatedAt: Int
}
input OrgFilter {
displayName: DisplayNameFilter
associatedAreaIds: AssociatedAreaIdsFilter
excludedAreaIds: ExcludedAreaIdsFilter
}
input DisplayNameFilter {
match: String!
exactMatch: Boolean
}
"Filter for organizations that are associated with an area."
input AssociatedAreaIdsFilter {
includes: [MUUID]
}
"Filter for organizations that have not excluded themselves from an area."
input ExcludedAreaIdsFilter {
excludes: [MUUID]
}