Skip to main content

Arguments

after : String
before : String
first : Int

Input fields for retrieving opportunities.

last : Int
offset : Int

Allowed Viewers

Customer Partner User Third party

Required Permissions

Can query leads

Query Complexity

3

Examples

The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.

Query

query Opportunities( $after: String, $before: String, $first: Int, $input: OpportunitiesQueryInput, $last: Int, $offset: Int ) { opportunities( after: $after, before: $before, first: $first, input: $input, last: $last, offset: $offset ) { edgeCount edges { ...OpportunitiesEdgeFragment } pageInfo { ...PageInfoFragment } totalCount } }

Variables

{ "after": "YXJyYXljb25uZWN0aW9uOjEw=", "before": "YXJyYXljb25uZWN0aW9uOjEw=", "first": 10, "input": OpportunitiesQueryInput, "last": 10, "offset": 69 }

Response

{ "data": { "opportunities": { "edgeCount": 90, "edges": [OpportunitiesEdge], "pageInfo": PageInfo, "totalCount": 7 } } }