ArangoDB v3.4 reached End of Life (EOL) and is no longer supported.
This documentation is outdated. Please see the most recent version here: Latest Docs
The “collection” Object
The following methods exist on the collection object (returned by db.name):
Collection
- collection.checksum()
- collection.compact()
- collection.count()
- collection.drop()
- collection.figures()
- collection.load()
- collection.properties(options)
- collection.revision()
- collection.rotate()
- collection.toArray()
- collection.truncate()
- collection.type()
- collection.unload()
Indexes
- collection.dropIndex(index)
- collection.ensureIndex(description)
- collection.getIndexes(name)
- collection.index(index)
Document
- collection.all()
- collection.any()
- collection.byExample(example)
- 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.range(attribute, left, right)
- collection.remove(selector)
- collection.removeByExample(example)
- collection.removeByKeys(keys)
- collection.rename()
- collection.replace(selector, data)
- collection.replaceByExample(example, data)
- collection.save(data)
- collection.update(selector, data)
- collection.updateByExample(example, data)