Metadata can be used to summarize information available from the Data Graph API.
Available metadata options include count, page number and total pages.
addresses(pageNumber: 1) {
metadata {
pageNumber
totalPages
count
}Paging is used within the Data Graph API to control the number of potential records returned.
Below is an example showing pagination implemented by using pageNumber
to specify the number of page. By default 100 results are returned at a time.
{
getById(id: "P00002SYB1XR", queryType: PRECISELY_ID) {
addresses(pageNumber: 1) {
metadata {
pageNumber
totalPages
count
}
data {
addressNumber
latitude
propertyAttributes(pageNumber: 9){
metadata {
pageNumber
totalPages
count
}
data{
owner
ownerFirstName
ownerLastName
}
}
}
}
}
}Below example shows how to set the number of records per Page:
{
getByAddress(address: "3145 Geneva St Denver") {
propertyAttributes(pageSize: 100) {
data {
propertyAttributeID
bathroomCount {
value
}
}
}
places(pageSize: 50) {
data {
groupName
pointOfInterestID
}
}
}
}Additionally, query filtering is available based on relationship type. To learn more about relationship types see the full Property Graph product documentation.