Skip to content

goals

All goals, either for a given user or for all of the providers clients

Arguments

frequency_filter · String · Can be daily, weekly, or one_time
status_filter · String · Can be complete or not_complete
after · String · Returns the elements in the list that come after the specified cursor.
before · String · Returns the elements in the list that come before the specified cursor.
first · Int · Returns the first _n_ elements from the list.
last · Int · Returns the last _n_ elements from the list.

Returns

GoalPaginationConnection

Example

query goals(
$category: String
$end_range: String
$frequency_filter: String
$keywords: String
$rel_goal_id: String
$start_range: String
$status_filter: String
$user_id: ID
$sort_by: String
$order_by: GoalOrderKeys
$after: String
$before: String
$first: Int
$last: Int
) {
goals(
category: $category
end_range: $end_range
frequency_filter: $frequency_filter
keywords: $keywords
rel_goal_id: $rel_goal_id
start_range: $start_range
status_filter: $status_filter
user_id: $user_id
sort_by: $sort_by
order_by: $order_by
after: $after
before: $before
first: $first
last: $last
) {
edges
nodes
page_info
total_count
}
}