API queries
models
Reference for the models query of the Prescient GraphQL API, with its return type and an example request.
Query
models: [Model!]!Returns all of the available models.
Arguments
Section titled “Arguments”This query takes no arguments.
Returns
Section titled “Returns”The query returns Model, written as [Model!]! in the schema. The type has these fields.
The name of the model
The unit in which this model's metrics are measured in
Example request
Section titled “Example request”Send the query in the query field of the request body.
query models { models { name unit }}Example response
Section titled “Example response”The values in this response are examples. They are not real data.
{ "data": { "models": [ { "name": "example_revenue", "unit": "REVENUE" } ] }}