Attachments

attachments Query

Audience: Programmer

Retrieves a paginated list of attachments with support for filtering and ordering. This query returns all attachments across the system that the user has access to.

Arguments

Name
Type
Description

after

Cursor

Returns elements after the specified cursor for forward pagination

first

Int

Returns the first n elements from the list

before

Cursor

Returns elements before the specified cursor for backward pagination

last

Int

Returns the last n elements from the list

orderBy

AttachmentOrder

Ordering options for the returned attachments

where

AttachmentWhereInput

Filtering criteria for the attachments

Return Type

AttachmentConnection! - A Relay-style connection containing:

  • edges: Array of attachment edges with cursor information

  • nodes: Array of attachment objects

  • pageInfo: Information about pagination (hasNextPage, hasPreviousPage, etc.)

  • totalCount: Total number of attachments matching the filter

Usage Example

GraphQL Query

Query Variables

JavaScript Example

Filtering Options

The where parameter supports various filtering options:

Ordering Options

Sort attachments using the orderBy parameter:

Last updated

Was this helpful?