The “collection” Object
The following methods exist on the collection object (returned by db.name):
Collection
- collection.checksum()
- collection.count()
- collection.drop()
- collection.figures()
- collection.load()
- collection.properties()
- collection.revision()
- collection.rotate()
- collection.toArray()
- collection.truncate()
- collection.type()
collection.unload()Indexes
- collection.ensureIndex(description)
- collection.getIndexes(name)
collection.index(index)Document
- collection.any()
- collection.closedRange(attribute, left, right)
- collection.document(object)
- collection.documents(keys)
- collection.edges(vertex-id)
- collection.exists(object)
- collection.firstExample(example)
- collection.inEdges(vertex-id)
- collection.insert(data)
- collection.edges(vertices)
- collection.iterate(iterator,options)
- collection.outEdges(vertex-id)
- collection.queryByExample(example)
- collection.range(attribute, left, right)
- collection.remove(selector)
- collection.removeByKeys(keys)
- collection.rename()
- collection.replace(selector, data)
- collection.replaceByExample(example, data)
- collection.save(data)
- collection.update(selector, data)
- collection.updateByExample(example, data)