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.

first Int

Returns the first n elements from the list.

The default value is 100.

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.

globalDistricts (GlobalDistrictConnection!)

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.

List all the district project in the platform.

Argument Type Description
after String

Returns the elements in the list that come after the specified cursor.

first Int

Returns the first n elements from the list.

The default value is 100.

name String

Filter by name.

The default value is null.

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.

first Int

Returns the first n elements from the list.

The default value is 100.

orderBy ProjectOrder

Ordering options for projects returning from the connection.

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

theme ID

ID of a Theme to filter by. If non-null, filter projects by themes

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.

first Int

Returns the first n elements from the list.

The default value is 100.

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.