Skip to content

metricGraphsData

Fetch data for the metric graphs for a given user

Arguments

end_date · ISO8601Date · End of the date range, must be sent in with a start date. Timestamp in YYYY-MM-DD HH:MM:SS or ISO8601 format.
has_third_party_source · Boolean · When false, returns no third-party data. When true, returns only third-party data. If not passed in, will return all data
start_date · ISO8601Date · Start of the date range, must be sent in with an end date. Timestamp in YYYY-MM-DD HH:MM:SS or ISO8601 format.
user_id · String · The ID of the user to fetch data for. Defaults to the current user.

Returns

[MetricGraphDataType!]!

Example

query metricGraphsData(
$end_date: ISO8601Date
$has_third_party_source: Boolean
$start_date: ISO8601Date
$user_id: String
) {
metricGraphsData(
end_date: $end_date
has_third_party_source: $has_third_party_source
start_date: $start_date
user_id: $user_id
)
}