Represents an attachment and can be used to insert the associated attachment into a document at a specific key-path. You can't instantiate an attachment directly, please use the newAttachment() method of Collection instead.
The attachment's metadata.
Copies the attachment to the specified file path. Node-only, throws in the browser.
The path that the attachment should be copied to.
Returns the attachment's data.
Represents an attachment and can be used to insert the associated attachment into a document at a specific key-path. You can't instantiate an attachment directly, please use the newAttachment() method of Collection instead.