Skip to main content

attachments

List of attachments

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

Arguments​

attachments.sort ● [Sort!] list input​

Sort result

attachments.articleId ● ID scalar​

Filter by article

attachments.createdByIds ● [ID!] list scalar​

Filter by created_by

attachments.folderId ● ID scalar​

Filter by folder

attachments.hidden ● Boolean scalar​

Filter by hidden field, also applied to versionsCount

attachments.imported ● Boolean scalar​

Filter by imported field

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)

attachments.storyId ● ID scalar​

Filter by story

attachments.topicId ● ID scalar​

Filter by topic

attachments.fileUsage ● [AttachmentsFileUsageType!] list enum​

Input object for searching attachments by file usage

attachments.includeDescriptionMentions ● Boolean scalar​

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

Input object for searching attachments

attachments.tags ● AttachmentsTagFilterType input​

Filter by tags

attachments.withoutVersions ● Boolean scalar​

Filter attachment versions

attachments.after ● String scalar​

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

attachments.before ● String scalar​

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

attachments.first ● Int scalar​

Returns the first _n_ elements from the list.

attachments.last ● Int scalar​

Returns the last _n_ elements from the list.

Type​

AttachmentConnection object​

The connection type for Attachment.