Skip to main content

attachments

List of attachments

attachments(
after: String
articleId: ID
before: String
createdByIds: [ID!]
fileUsage: [AttachmentsFileUsageType!]
first: Int
folderId: ID
imported: Boolean
includeDescriptionMentions: Boolean = false
last: Int
mediaTypes: [AttachmentsMediaType!]
originId: ID
recentlyUsed: Boolean = false
search: AttachmentsSearchType
sort: [Sort!] = [{ caseSensitive: true, direction: desc, field: "created_at" }]
storyId: ID
tags: AttachmentsTagFilterType
topicId: ID
withoutVersions: Boolean = false
): AttachmentConnection

Arguments

attachments.after ● String scalar

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

attachments.articleId ● ID scalar

Filter by article

attachments.before ● String scalar

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

attachments.createdByIds ● [ID!] list scalar

Filter by created_by

attachments.fileUsage ● [AttachmentsFileUsageType!] list enum

Input object for searching attachments by file usage

attachments.first ● Int scalar

Returns the first _n_ elements from the list.

attachments.folderId ● ID scalar

Filter by folder

attachments.imported ● Boolean scalar

Filter by imported field

attachments.includeDescriptionMentions ● Boolean scalar

When filtering by article_id/story_id/topic_id, also include attachments mentioned in the resource description

attachments.last ● Int scalar

Returns the last _n_ elements from the list.

attachments.mediaTypes ● [AttachmentsMediaType!] list enum

Filter by media type

attachments.originId ● ID scalar

Filter by origin

attachments.recentlyUsed ● Boolean scalar

Filter by recent only (2 week from now)

Input object for searching attachments

attachments.sort ● [Sort!] list input

Sort result

attachments.storyId ● ID scalar

Filter by story

attachments.tags ● AttachmentsTagFilterType input

Filter by tags

attachments.topicId ● ID scalar

Filter by topic

attachments.withoutVersions ● Boolean scalar

Filter attachment versions

Type

AttachmentConnection object

The connection type for Attachment.