• Introduction
  • Getting Started
    • Installing
      • Linux
      • Mac OS X
      • Windows
      • Compiling
    • Authentication
    • Accessing the Web Interface
    • Coming from SQL
  • Highlights
  • Scalability
    • Architecture
    • Data models
    • Limitations
  • Data models & modeling
    • Concepts
    • Databases
      • Working with Databases
      • Notes about Databases
    • Collections
      • Collection Methods
      • Database Methods
    • Documents
      • Basics and Terminology
      • Collection Methods
      • Database Methods
    • Graphs, Vertices & Edges
    • Naming Conventions
      • Database Names
      • Collection Names
      • Document Keys
      • Attribute Names
  • Indexing
    • Index Basics
    • Which index to use when
    • Index Utilization
    • Working with Indexes
      • Hash Indexes
      • Skiplists
      • Persistent
      • Fulltext Indexes
      • Geo Indexes
      • Vertex Centric Indexes
  • Graphs
    • General Graphs
      • Graph Management
      • Graph Functions
    • SmartGraphs
      • SmartGraph Management
    • Traversals
      • Using Traversal Objects
      • Example Data
    • Working with Edges
    • Pregel
  • Foxx Microservices
    • At a glance
    • Getting started
    • Service manifest
    • Service context
    • Configuration
    • Dependencies
    • Routers
      • Endpoints
      • Middleware
      • Request
      • Response
    • Using GraphQL
    • Sessions middleware
      • Session storages
        • Collection storage
        • JWT storage
      • Session transports
        • Cookie transport
        • Header transport
    • Serving files
    • Writing tests
    • Cross Origin
    • Scripts and queued jobs
    • Migrating 2.x services
      • Migrating from pre-2.8
      • manifest.json
      • applicationContext
      • Repositories and Models
      • Controllers
        • Request context
        • Error handling
        • Before/After/Around
        • Request object
        • Response object
        • Dependency Injection
      • Sessions
      • Auth and OAuth2
      • Foxx Queries
    • Legacy compatibility mode
    • User management
    • Related modules
      • Authentication
      • OAuth 1.0a
      • OAuth 2.0
  • Transactions
    • Transaction invocation
    • Passing parameters
    • Locking and isolation
    • Durability
    • Limitations
  • Deployment
    • Single instance
    • Cluster: Mesos, DC/OS
    • Cluster: Generic & Docker
    • Advanced Topics
      • Standalone Agency
      • Cluster: Local test setups
      • Cluster: Processes
      • Cluster: Docker
  • Administration
    • Web Interface
      • Queries
      • Collections
      • Cluster
      • Dashboard
      • Document
      • Logs
      • Services
      • Graphs
    • ArangoDB Shell
      • Shell Output
      • Configuration
      • Details
    • Arangoimp
    • Arangodump
    • Arangorestore
    • Arangoexport
    • Managing Users
    • Server Configuration
      • Operating System Configuration
      • Managing Endpoints
      • SSL Configuration
      • LDAP Options
      • Logging Options
      • General Options
      • Write-Ahead Log Options
      • Cluster Options
      • RocksDB Engine Options
      • Hash Cache Options
      • Asynchronous Tasks
    • Durability
    • Encryption
    • Auditing
      • Configuration
      • Events
    • Replication
      • Asynchronous Replication
        • Components
        • Example Setup
        • Syncing Collections
        • Replication Limitations
      • Synchronous Replication
        • Implementation
        • Configuration
      • Satellite Collections
    • Sharding
    • Upgrading
      • Upgrading to 3.2
      • Upgrading to 3.1
      • Upgrading to 3.0
      • Upgrading to 2.8
      • Upgrading to 2.6
      • Upgrading to 2.5
      • Upgrading to 2.4
      • Upgrading to 2.3
      • Upgrading to 2.2
  • Troubleshooting
    • arangod
    • Emergency Console
    • Datafile Debugger
    • Arangobench
  • Architecture
    • Write-ahead log
    • Storage Engines
  • Release notes
    • Whats New in 3.2
    • Known Issues in 3.2
    • Incompatible changes in 3.2
    • Whats New in 3.1
    • Incompatible changes in 3.1
    • Whats New in 3.0
    • Incompatible changes in 3.0
    • Whats New in 2.8
    • Incompatible changes in 2.8
    • Whats New in 2.7
    • Incompatible changes in 2.7
    • Whats New in 2.6
    • Incompatible changes in 2.6
    • Whats New in 2.5
    • Incompatible changes in 2.5
    • Whats New in 2.4
    • Incompatible changes in 2.4
    • Whats New in 2.3
    • Incompatible changes in 2.3
    • Whats New in 2.2
    • Whats New in 2.1
  • Appendix
    • References
      • db
      • collection
    • JavaScript Modules
      • @arangodb
      • console
      • crypto
      • fs
      • request
      • actions
      • queries
      • Write-ahead log
      • Task Management
    • Deprecated
      • Simple Queries
        • Sequential Access
        • Pagination
        • Modification Queries
        • Geo Queries
        • Fulltext Queries
      • Actions
        • Delivering HTML Pages
        • Json Objects
        • Modifying
    • Error codes and meanings
    • Glossary
  • Published with GitBook

collection

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.dropIndex(index)
  • collection.ensureIndex(description)
  • collection.getIndexes(name)
  • collection.index(index)

Document

  • collection.all()
  • 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)


© ArangoDB - the native multi-model NoSQL database