NodeAttachments
nodeAttachments Query
Audience: Programmer
Fetches an attachment object given its ID. This query follows the Relay Global Object Identification Specification and is used to retrieve a single attachment by its unique identifier.
Arguments
Name
Type
Description
id
ID!
The unique identifier of the attachment to retrieve
Return Type
NodeAttachments - An interface that returns an object implementing the NodeAttachments interface. Currently, this is implemented by the Attachment type.
Usage Example
GraphQL Query
query GetAttachment($id: ID!) {
nodeAttachments(id: $id) {
id
... on Attachment {
filename
contentType
size
url
refId
reftype
metadata
createdAt
updatedAt
}
}
}Query Variables
JavaScript Example
Related
Last updated
Was this helpful?
