mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-25 02:19:58 +00:00
67 lines
1.6 KiB
GraphQL
67 lines
1.6 KiB
GraphQL
query getUser($urn: String!, $groupsCount: Int!) {
|
|
corpUser(urn: $urn) {
|
|
urn
|
|
username
|
|
info {
|
|
active
|
|
displayName
|
|
title
|
|
firstName
|
|
lastName
|
|
fullName
|
|
email
|
|
}
|
|
editableInfo {
|
|
pictureLink
|
|
teams
|
|
skills
|
|
}
|
|
globalTags {
|
|
...globalTagsFields
|
|
}
|
|
relationships(types: ["IsMemberOfGroup"], direction: OUTGOING, start: 0, count: $groupsCount) {
|
|
start
|
|
count
|
|
total
|
|
relationships {
|
|
entity {
|
|
... on CorpGroup {
|
|
urn
|
|
type
|
|
name
|
|
info {
|
|
displayName
|
|
description
|
|
email
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
query getUserGroups($urn: String!, $start: Int!, $count: Int!) {
|
|
corpUser(urn: $urn) {
|
|
relationships(types: ["IsMemberOfGroup"], direction: OUTGOING, start: $start, count: $count) {
|
|
start
|
|
count
|
|
total
|
|
relationships {
|
|
entity {
|
|
... on CorpGroup {
|
|
urn
|
|
type
|
|
name
|
|
info {
|
|
displayName
|
|
description
|
|
email
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|