The Cost Parameter is a feature used to calculate and return the cost of an entire query in terms of the number of credits consumed. This parameter provides users with a clear understanding of the resource consumption associated with executing a specific query.
By including the cost parameter you can:
- Estimate the credit usage for a query before execution.
- Optimize queries by analyzing their cost and making necessary adjustments.
- Monitor and manage resource consumption effectively.
Below is a sample query including cost parameter:
{
getByAddress(address: "3145 Geneva St Denver") {
queryCredits
addresses{
data{
preciselyID
addressNumber
latitude
longitude
}
}
buildings{
data{
buildingID
buildingType{
value
description
}
buildingArea
}
}
}
}