forked from nasa/cmr-graphql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgroup.graphql
108 lines (80 loc) · 3.33 KB
/
group.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
type Group {
"The unique id assigned to the group."
id: String!
"The UID of the application that created the group."
appUid: String
"The client ID of the application that created the group."
clientId: String
"Name of the group."
name: String!
"Description of the group."
description: String
"Is the group shared."
sharedUserGroup: Boolean
"Who created the group."
createdBy: String
"Tag for the group."
tag: String
"List of members of the group."
members: GroupMemberList
}
type GroupList {
"The number of hits for a given search."
count: Int
"The list of group search results."
items: [Group]
}
input GroupsInput {
"Parameter used to search for groups by name. Group names are comprised of letters and numbers with no spaces. Any group matching the passed in string will be returned."
name: String
"Parameter used to search for groups by user ids. Multiple user ids can be passed as a comma separated string or as an array. A group containing all users passed in will be returned."
userIds: [String]
"Parameter used to search for groups by tags. A group that matches any of the tags passed in will be returned. This field supports wildcard searches by setting `wildcardTags` to `true`."
tags: [String]
"Setting to `true` will have the `tags` parameter act as a wildcard search, returning groups where the tag contains the provided tag. Setting to `false` will have the `tags` parameter be an exact search. Defaults to `false`."
wildcardTags: Boolean
}
input GroupInput {
"The unique id assigned to the group."
id: String!
}
type Query {
groups (
"User groups query parameters."
params: GroupsInput
): GroupList!
group (
"User group query parameters."
params: GroupInput
): Group
}
type Mutation {
createGroup (
"Required parameter used to set the name of the group. Group names are limited to having letters, numbers, periods, spaces, dashes, and underscores."
name: String!
"Optional parameter used set a description of the group. Unless this parameter is supplied, the description will be empty."
description: String
"Optional parameter used set a tag for the group. Unless this parameter is supplied, the tag will be empty."
tag: String
"Optional parameter used set the shared parameter in the group. Unless this parameter is supplied, the shared_user_group will be false by default."
sharedUserGroup: String
"Optional parameter used set the list of members assigned to the group. Values should be a string containing a comma-delimited list of members. Unless this parameter is supplied, the members list will be empty by default."
members: String
): Group!
deleteGroup (
"The unique id assigned to the group."
id: String!
): Boolean!
updateGroup (
"The unique id assigned to the group."
id: String!
"The new name of the group."
name: String
"The new description of the group."
description: String
"The new tag of the group."
tag: String
"Update the group members list (optional parameter). Values passed here will replace the current list of members in the group. Values should be a string containing a comma-delimited list of members. An empty or blank value will signify a blank list of members and will erase the current existing list of members in the group."
members: String
): Group!
}