Normalize user group in GraphQL queries
This commit is contained in:
parent
9a89fa874b
commit
b4a3699aa3
|
|
@ -1,3 +1,4 @@
|
||||||
|
#import "./userGroupParts.gql"
|
||||||
fragment RoomParts on RoomNode {
|
fragment RoomParts on RoomNode {
|
||||||
id
|
id
|
||||||
slug
|
slug
|
||||||
|
|
@ -6,8 +7,6 @@ fragment RoomParts on RoomNode {
|
||||||
appearance
|
appearance
|
||||||
description
|
description
|
||||||
userGroup {
|
userGroup {
|
||||||
id
|
...UserGroupParts
|
||||||
name
|
|
||||||
year
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
fragment UserGroupParts on UserGroupNode {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
year
|
||||||
|
}
|
||||||
|
|
@ -1,12 +1,9 @@
|
||||||
|
#import "./fragments/userGroupParts.gql"
|
||||||
query UserGroupsQuery {
|
query UserGroupsQuery {
|
||||||
userGroups {
|
userGroups {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
id
|
...UserGroupParts
|
||||||
pk
|
|
||||||
name
|
|
||||||
year
|
|
||||||
isDeleted
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue