Skip to content

Instantly share code, notes, and snippets.

@tischsoic
Created July 19, 2019 13:41
Show Gist options
  • Save tischsoic/88ae4aaad7a89d4779ac6e0fb5238ce2 to your computer and use it in GitHub Desktop.
Save tischsoic/88ae4aaad7a89d4779ac6e0fb5238ce2 to your computer and use it in GitHub Desktop.
{
_repository {
location(locationId: 73) {
pathString
children(sortBy: [_name, _desc], first:3) {
pageInfo {
hasNextPage
endCursor
}
edges {
node {
id # 10) Location ID
remoteId # Location remote ID
invisible # 2) Visibility ??
hidden # 2) Visibility ??
priority # priority
content {
id # 11) Object ID
name # 1) Name
currentVersion {
creator {
name # 4) Creator
}
languageCodes # 8) lang codes for Translations
}
contentType {
name # 3) Type
}
remoteId # Object remote ID
currentVersionNo # needed to get current version
section {
name # 9) Section
}
publishedDate {
timestamp # 7) Publication date
}
modificationDate {
timestamp # 6) Modification date
}
}
}
}
}
}
}
}
# 1) Name (+)
# 2) Visibility (?)
# 3) Type (+)
# 4) Creator (+)
# 5) Contributor (-)
# 6) Modification date (+)
# 7) Publication date (+)
# 8) Translations (+)
# 9) Section (-)
# 10) Location ID (+)
# 11) Object ID (+)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment