Skip to content

metricGraphData

Fetch data for the metric graphs for a given user

Arguments

end_date · String · End of the date range, must be sent in with a start date.
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 · String · Start of the date range, must be sent in with an end date.

Returns

MetricGraphDataType

Example

query metricGraphData(
$category: String
$end_date: String
$entry_type: String
$has_third_party_source: Boolean
$multiplier: String
$start_date: String
$user_id: String
) {
metricGraphData(
category: $category
end_date: $end_date
entry_type: $entry_type
has_third_party_source: $has_third_party_source
multiplier: $multiplier
start_date: $start_date
user_id: $user_id
) {
category
category_label
data_points
has_entry
max
min
xtick_type
ytick_type
}
}