mirror of https://gitee.com/bigwinds/arangodb
52 lines
3.6 KiB
Plaintext
52 lines
3.6 KiB
Plaintext
!CHAPTER The "collection" Object
|
|
|
|
The following methods exist on the collection object (returned by *db.name*):
|
|
|
|
*Collection*
|
|
|
|
* [collection.checksum()](../../DataModeling/Collections/CollectionMethods.md#checksum)
|
|
* [collection.count()](../../DataModeling/Documents/DocumentMethods.md#count)
|
|
* [collection.drop()](../../DataModeling/Collections/CollectionMethods.md#drop)
|
|
* [collection.figures()](../../DataModeling/Collections/CollectionMethods.md#figures)
|
|
* [collection.load()](../../DataModeling/Collections/CollectionMethods.md#load)
|
|
* [collection.properties()](../../DataModeling/Collections/CollectionMethods.md#properties)
|
|
* [collection.reserve()](../../DataModeling/Collections/CollectionMethods.md#reserve)
|
|
* [collection.revision()](../../DataModeling/Collections/CollectionMethods.md#revision)
|
|
* [collection.rotate()](../../DataModeling/Collections/CollectionMethods.md#rotate)
|
|
* [collection.toArray()](../../DataModeling/Documents/DocumentMethods.md#toarray)
|
|
* [collection.truncate()](../../DataModeling/Collections/CollectionMethods.md#truncate)
|
|
* [collection.type()](../../DataModeling/Documents/DocumentMethods.md#collection-type)
|
|
* [collection.unload()](../../DataModeling/Collections/CollectionMethods.md#unload)
|
|
|
|
*Indexes*
|
|
|
|
* [collection.dropIndex(index)](../../Indexing/WorkingWithIndexes.md#dropping-an-index)
|
|
* [collection.ensureIndex(description)](../../Indexing/WorkingWithIndexes.md#creating-an-index)
|
|
* [collection.getIndexes(name)](../../Indexing/WorkingWithIndexes.md#listing-all-indexes-of-a-collection)
|
|
* [collection.index(index)](../../Indexing/WorkingWithIndexes.md#index-identifiers-and-handles)
|
|
|
|
*Document*
|
|
|
|
* [collection.all()](../../DataModeling/Documents/DocumentMethods.md#all)
|
|
* [collection.any()](../../DataModeling/Documents/DocumentMethods.md#any)
|
|
* [collection.closedRange(attribute, left, right)](../../DataModeling/Documents/DocumentMethods.md#closed-range)
|
|
* [collection.document(object)](../../DataModeling/Documents/DocumentMethods.md#document)
|
|
* [collection.documents(keys)](../../DataModeling/Documents/DocumentMethods.md#lookup-by-keys)
|
|
* [collection.edges(vertex-id)](../../DataModeling/Documents/DocumentMethods.md#edges)
|
|
* [collection.exists(object)](../../DataModeling/Documents/DocumentMethods.md#exists)
|
|
* [collection.firstExample(example)](../../DataModeling/Documents/DocumentMethods.md#first-example)
|
|
* [collection.inEdges(vertex-id)](../../DataModeling/Documents/DocumentMethods.md#edges)
|
|
* [collection.insert(data)](../../DataModeling/Documents/DocumentMethods.md#insert)
|
|
* [collection.edges(vertices)](../../DataModeling/Documents/DocumentMethods.md#edges)
|
|
* [collection.iterate(iterator,options)](../../DataModeling/Documents/DocumentMethods.md#misc)
|
|
* [collection.outEdges(vertex-id)](../../DataModeling/Documents/DocumentMethods.md#edges)
|
|
* [collection.queryByExample(example)](../../DataModeling/Documents/DocumentMethods.md#query-by-example)
|
|
* [collection.range(attribute, left, right)](../../DataModeling/Documents/DocumentMethods.md#range)
|
|
* [collection.remove(selector)](../../DataModeling/Documents/DocumentMethods.md#remove)
|
|
* [collection.removeByKeys(keys)](../../DataModeling/Documents/DocumentMethods.md#remove-by-keys)
|
|
* [collection.rename()](../../DataModeling/Collections/CollectionMethods.md#rename)
|
|
* [collection.replace(selector, data)](../../DataModeling/Documents/DocumentMethods.md#replace)
|
|
* [collection.replaceByExample(example, data)](../../DataModeling/Documents/DocumentMethods.md#replace-by-example)
|
|
* [collection.update(selector, data)](../../DataModeling/Documents/DocumentMethods.md#update)
|
|
* [collection.updateByExample(example, data)](../../DataModeling/Documents/DocumentMethods.md#update-by-example)
|