114 lines
3.3 KiB
GraphQL
Raw Normal View History

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
}
}
}
}
}
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
}
}
}
}
}
}
}