About queries
Every GraphQL schema has a root type for both queries and mutations. The query type defines GraphQL operations that retrieve data from the server.
For more information, see Form calls with GraphQL.
comment
Fetch data for a specific comment.
Type: Comment
Arguments for comment
| Name | Description |
|---|---|
id (ID!) | The id of the comment to load. |
comments
List of all comments on the platform.
Results are limited to what the current viewer has access to. If no limits are specified will limit to 10 results.
Type: CommentConnection!
Arguments for comments
| Name | Description |
|---|---|
after (Cursor) | Returns the elements that come after the specified cursor. |
before (Cursor) | Returns the elements that come before the specified cursor. |
first (Int) | Returns up to the first |
last (Int) | Returns up to the last |
reverse (Boolean) | Reverse the order of the underlying list. The default value is:false. |
sortKey (CommentSortKeys) | Sort the underlying list by the given key. The default value is:CREATED_AT. |
event
Fetch data for a specific event.
Type: Event
Arguments for event
| Name | Description |
|---|---|
id (ID!) | The id of the event to load. |
events
List of all events on the platform.
Results are limited to what the current viewer has access to.
Type: EventConnection!
Arguments for events
| Name | Description |
|---|---|
after (Cursor) | Returns the elements that come after the specified cursor. |
before (Cursor) | Returns the elements that come before the specified cursor. |
first (Int) | Returns up to the first |
last (Int) | Returns up to the last |
reverse (Boolean) | Reverse the order of the underlying list. The default value is:false. |
sortKey (EventSortKeys) | Sort the underlying list by the given key. The default value is:CREATED_AT. |
topic
Fetch data for a specific topic.
Type: Topic
Arguments for topic
| Name | Description |
|---|---|
id (ID!) | The id of the topic to load. |
topics
List of all topics on the platform.
Results are limited to what the current viewer has access to.
Type: TopicConnection!
Arguments for topics
| Name | Description |
|---|---|
after (Cursor) | Returns the elements that come after the specified cursor. |
before (Cursor) | Returns the elements that come before the specified cursor. |
first (Int) | Returns up to the first |
last (Int) | Returns up to the last |
reverse (Boolean) | Reverse the order of the underlying list. The default value is:false. |
sortKey (TopicSortKeys) | Sort the underlying list by the given key. The default value is:CREATED_AT. |
topicsByType
List of all topics on the platform filtered by topic type.
Results are limited to what the current viewer has access to.
Type: TopicConnection!
Arguments for topicsByType
| Name | Description |
|---|---|
type (ID!) | The id of the topic type to load. |
after (Cursor) | Returns the elements that come after the specified cursor. |
before (Cursor) | Returns the elements that come before the specified cursor. |
first (Int) | Returns up to the first |
last (Int) | Returns up to the last |
reverse (Boolean) | Reverse the order of the underlying list. The default value is:false. |
sortKey (TopicSortKeys) | Sort the underlying list by the given key. The default value is:CREATED_AT. |
topicTypes
List of all topic types on the platform.
Type: [TopicType!]!
user
Fetch data for a specific user.
Type: User
Arguments for user
| Name | Description |
|---|---|
id (ID!) | The id of the user to load. |
users
List of users.
If no limits are specified will limit to 10 results.
Type: UserConnection!
Arguments for users
| Name | Description |
|---|---|
after (Cursor) | Returns the elements that come after the specified cursor. |
before (Cursor) | Returns the elements that come before the specified cursor. |
first (Int) | Returns up to the first |
last (Int) | Returns up to the last |
reverse (Boolean) | Reverse the order of the underlying list. The default value is:false. |
sortKey (UserSortKeys) | Sort the underlying list by the given key. The default value is:CREATED_AT. |
viewer
Get information about the currently authenticated user.
NULL if you're not authenticated.
Type: Actor