Data Graph queries are in GraphQL™ format. There is an object type for each Precisely Enrich Data resource (dataset). For any query, metadata and data can be specified to be returned for the requested object type. One or many fields may be selected from the requested object type (dataset).
query name (1) {
queryAction (2) {
objectType (3) {
metadata (4) {
totalPages
currentPage
count
}
data (5) {
field
field
field
}
}
}
}Where:
(1) This is the identifying name of the query and where variables could be introduced and assigned.
(2) This is the parameters of the query.
(3) This is the data set that is being requested from the results in (2).
(4) This is the metadata that indicates the total number of pages and current page that result from the result returned by (3). Note that "count" indicates the total number of records that are available for the current record set.
(5) These are the fields requested from the data (3)
query BuildingsAddressesByAddress {
getByAddress(address: "10425 E 31st Ave Denver CO") { #Level 1
buildings { #Level 2
data {
buildingID
geometry
addresses { #Level 3
data {
preciselyID
addressNumber
streetName
unit
}
}
}
}
}
} query buildingsAddressesByParcel {
getByAddress(address: "2903 Havana St Denver") { Level 1
parcels { Level 2
data {
parcelID
geometry
buildings { Level 3
data {
buildingID
geometry
addresses { Level 4
metadata {
count
}
}
}
}
}
}
}
}