Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 2.6 KB

File metadata and controls

48 lines (30 loc) · 2.6 KB

Get Attachment Operation


{NOTE: }

{NOTE/}


{PANEL: Get attachment example}

{CODE:nodejs get_attachment@client-api\operations\attachments\getAttachment.js /}

{PANEL/}

{PANEL: Syntax}

{CODE:nodejs syntax_1@client-api\operations\attachments\getAttachment.js /}

Parameter Type Description
documentId string Document ID that contains the attachment.
name string Name of attachment to get.
type string Specify whether getting an attachment from a document or from a revision.
("Document" or "Revision").
changeVector string The ChangeVector of the document or the revision to which the attachment belongs.
Mandatory when getting an attachment from a revision.
Used for concurrency checks (use null to skip the check).
Return Value of store.operations.send(getAttachmentOp)
AttachmentResult An instance of class AttachmentResult

{CODE:nodejs syntax_2@client-api\operations\attachments\getAttachment.js /}

{PANEL/}

Related Articles

Operations