FileCursor Class represents each record in FilesCursor#each()
or document returned from FilesCollection#findOne()
method.
All document's original properties is available directly by name, like: FileCursor#propertyName
import { FilesCollection } from 'meteor/ostrio:files';
const imagesCollection = new FilesCollection();
const cursor = imagesCollection.findOne(); // <-- Returns FileCursor Instance
remove(callback)
- {undefined} - Remove document. Callback haserror
argumentlink()
- {String} - Returns downloadable URL to Filelink('version')
- {String} - Returns downloadable URL to File's subversionlink('original', 'https://other-domain.com/')
- {String} - Returns downloadable URL to File located on other domainlink('original', '/')
- {String} - Returns relative downloadable URL to File
get(property)
- {Object|mix} - Returns current document as a plain Object, ifproperty
is specified - returns value of sub-object propertyfetch()
- {[Object]}- Returns current document as plain Object in Arraywith()
- {FileCursor} - Returns reactive version of current FileCursor, useful to use with{{#with cursor.with}}...{{/with}}
block template helper