2021-08-16 20:47:18 -07:00
|
|
|
query getGroup($urn: String!, $membersCount: Int!) {
|
|
|
|
corpGroup(urn: $urn) {
|
|
|
|
urn
|
|
|
|
type
|
|
|
|
name
|
|
|
|
info {
|
|
|
|
displayName
|
|
|
|
description
|
|
|
|
email
|
|
|
|
}
|
|
|
|
relationships(types: ["IsMemberOfGroup"], direction: INCOMING, start: 0, count: $membersCount) {
|
|
|
|
start
|
|
|
|
count
|
|
|
|
total
|
|
|
|
relationships {
|
|
|
|
entity {
|
|
|
|
... on CorpUser {
|
|
|
|
urn
|
|
|
|
username
|
|
|
|
info {
|
|
|
|
active
|
|
|
|
displayName
|
|
|
|
title
|
|
|
|
firstName
|
|
|
|
lastName
|
|
|
|
fullName
|
|
|
|
}
|
|
|
|
editableInfo {
|
|
|
|
pictureLink
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
query getGroupMembers($urn: String!, $start: Int!, $count: Int!) {
|
|
|
|
corpGroup(urn: $urn) {
|
|
|
|
relationships(types: ["IsMemberOfGroup"], direction: INCOMING, start: $start, count: $count) {
|
|
|
|
start
|
|
|
|
count
|
|
|
|
total
|
|
|
|
relationships {
|
|
|
|
entity {
|
|
|
|
... on CorpUser {
|
|
|
|
urn
|
|
|
|
username
|
|
|
|
info {
|
|
|
|
active
|
|
|
|
displayName
|
|
|
|
title
|
|
|
|
firstName
|
|
|
|
lastName
|
|
|
|
fullName
|
|
|
|
}
|
|
|
|
editableInfo {
|
|
|
|
pictureLink
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-08-31 22:00:56 -07:00
|
|
|
otherMembers: relationships(types: ["isOwner"], direction: INCOMING, start: $start, count: $count) {
|
|
|
|
start
|
|
|
|
count
|
|
|
|
total
|
|
|
|
relationships {
|
|
|
|
entity {
|
|
|
|
... on CorpUser {
|
|
|
|
urn
|
|
|
|
username
|
|
|
|
info {
|
|
|
|
active
|
|
|
|
displayName
|
|
|
|
title
|
|
|
|
firstName
|
|
|
|
lastName
|
|
|
|
fullName
|
|
|
|
}
|
|
|
|
editableInfo {
|
|
|
|
pictureLink
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
andMore: relationships(types: ["DownstreamOf"], direction: INCOMING, start: $start, count: $count) {
|
|
|
|
start
|
|
|
|
count
|
|
|
|
total
|
|
|
|
relationships {
|
|
|
|
entity {
|
|
|
|
... on CorpUser {
|
|
|
|
urn
|
|
|
|
username
|
|
|
|
info {
|
|
|
|
active
|
|
|
|
displayName
|
|
|
|
title
|
|
|
|
firstName
|
|
|
|
lastName
|
|
|
|
fullName
|
|
|
|
}
|
|
|
|
editableInfo {
|
|
|
|
pictureLink
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-08-16 20:47:18 -07:00
|
|
|
}
|
|
|
|
}
|