Cap Collectif Developers - GraphQL API

Query

The query type defines GraphQL operations that retrieve data from the server.

Connections

events (EventConnection!)

This part of the schema is currently available for developers to preview. During this preview period, the API may change without any advance notice. Please see Schema previews for more details.

Lookup events.

Argument Type Description
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.

The default value is 100.

last Int

Returns the last n elements from the list.

orderBy EventOrder

Ordering options for events returning from the connection.

The default value is { "field": "START_AT", "direction": "DESC" }.

project ID

ID of a Project to filter by. If non-null, only events belonging to the project will be returned.

projects (ProjectConnection!)

This part of the schema is currently available for developers to preview. During this preview period, the API may change without any advance notice. Please see Schema previews for more details.

Lookup projects.

Argument Type Description
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.

The default value is 100.

last Int

Returns the last n elements from the list.

orderBy ProjectOrder

Ordering options for projects returning from the connection.

The default value is { "field": "LATEST", "direction": "DESC" }.

users (UserConnection!)

This part of the schema is currently available for developers to preview. During this preview period, the API may change without any advance notice. Please see Schema previews for more details.

Lookup users.

Argument Type Description
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.

The default value is 100.

last Int

Returns the last n elements from the list.

Fields

node (Node)

Lookup a node by its ID.

Argument Type Description
id ID!

The ID of an object.

nodes ([Node]!)

Lookup nodes by a list of IDs.

Argument Type Description
ids [ID!]!

The list of node IDs.

viewer (User!) ROLE_USER

The currently authenticated user.