• Manual
  • AQL
  • HTTP
  • Cookbook
  • Google Groups
  • Introduction
  • 1. Getting Started
    • 1.1. Installing
      • 1.1.1. Linux
      • 1.1.2. Mac OS X
      • 1.1.3. Windows
      • 1.1.4. Compiling
    • 1.2. Authentication
    • 1.3. Accessing the Web Interface
    • 1.4. Coming from SQL
  • 2. Scalability
    • 2.1. Architecture
    • 2.2. Data models
    • 2.3. Limitations
  • 3. Data models & modeling
    • 3.1. Concepts
    • 3.2. Databases
      • 3.2.1. Working with Databases
      • 3.2.2. Notes about Databases
    • 3.3. Collections
      • 3.3.1. Collection Methods
      • 3.3.2. Database Methods
    • 3.4. Documents
      • 3.4.1. Basics and Terminology
      • 3.4.2. Collection Methods
      • 3.4.3. Database Methods
    • 3.5. Graphs, Vertices & Edges
    • 3.6. Naming Conventions
      • 3.6.1. Database Names
      • 3.6.2. Collection Names
      • 3.6.3. Document Keys
      • 3.6.4. Attribute Names
  • 4. Indexing
    • 4.1. Index Basics
    • 4.2. Which index to use when
    • 4.3. Index Utilization
    • 4.4. Working with Indexes
      • 4.4.1. Hash Indexes
      • 4.4.2. Skiplists
      • 4.4.3. Persistent
      • 4.4.4. Fulltext Indexes
      • 4.4.5. Geo Indexes
  • 5. Graphs
    • 5.1. General Graphs
      • 5.1.1. Graph Management
      • 5.1.2. Graph Functions
    • 5.2. SmartGraphs
      • 5.2.1. SmartGraph Management
    • 5.3. Traversals
      • 5.3.1. Using Traversal Objects
      • 5.3.2. Example Data
    • 5.4. Working with Edges
  • 6. Foxx Microservices
    • 6.1. At a glance
    • 6.2. Getting started
    • 6.3. Service manifest
    • 6.4. Service context
    • 6.5. Configuration
    • 6.6. Dependencies
    • 6.7. Routers
      • 6.7.1. Endpoints
      • 6.7.2. Middleware
      • 6.7.3. Request
      • 6.7.4. Response
    • 6.8. Using GraphQL
    • 6.9. Sessions middleware
      • 6.9.1. Session storages
        • 6.9.1.1. Collection storage
        • 6.9.1.2. JWT storage
      • 6.9.2. Session transports
        • 6.9.2.1. Cookie transport
        • 6.9.2.2. Header transport
    • 6.10. Serving files
    • 6.11. Writing tests
    • 6.12. Scripts and queued jobs
    • 6.13. Migrating 2.x services
      • 6.13.1. Migrating from pre-2.8
      • 6.13.2. manifest.json
      • 6.13.3. applicationContext
      • 6.13.4. Repositories and Models
      • 6.13.5. Controllers
        • 6.13.5.1. Request context
        • 6.13.5.2. Error handling
        • 6.13.5.3. Before/After/Around
        • 6.13.5.4. Request object
        • 6.13.5.5. Response object
        • 6.13.5.6. Dependency Injection
      • 6.13.6. Sessions
      • 6.13.7. Auth and OAuth2
      • 6.13.8. Foxx Queries
    • 6.14. Legacy compatibility mode
    • 6.15. User management
    • 6.16. Related modules
      • 6.16.1. Authentication
      • 6.16.2. OAuth 2.0
  • 7. Transactions
    • 7.1. Transaction invocation
    • 7.2. Passing parameters
    • 7.3. Locking and isolation
    • 7.4. Durability
    • 7.5. Limitations
  • 8. Deployment
    • 8.1. Single instance
    • 8.2. Cluster: Mesos, DC/OS
    • 8.3. Cluster: Local test
    • 8.4. Cluster: Processes
    • 8.5. Cluster: Docker
    • 8.6. Agency
  • 9. Administration
    • 9.1. Web Interface
      • 9.1.1. Queries
      • 9.1.2. Collections
      • 9.1.3. Cluster
      • 9.1.4. Dashboard
      • 9.1.5. Document
      • 9.1.6. Logs
      • 9.1.7. Services
      • 9.1.8. Graphs
    • 9.2. ArangoDB Shell
      • 9.2.1. Shell Output
      • 9.2.2. Configuration
      • 9.2.3. Details
    • 9.3. Arangoimp
    • 9.4. Arangodump
    • 9.5. Arangorestore
    • 9.6. Managing Users
    • 9.7. Server Configuration
      • 9.7.1. Managing Endpoints
      • 9.7.2. SSL Configuration
      • 9.7.3. Logging Options
      • 9.7.4. General Options
      • 9.7.5. Write-Ahead Log Options
      • 9.7.6. Cluster Options
      • 9.7.7. Asynchronous Tasks
    • 9.8. Durability
    • 9.9. Replication
      • 9.9.1. Asynchronous Replication
        • 9.9.1.1. Components
        • 9.9.1.2. Example Setup
        • 9.9.1.3. Syncing Collections
        • 9.9.1.4. Replication Limitations
      • 9.9.2. Synchronous Replication
        • 9.9.2.1. Implementation
        • 9.9.2.2. Configuration
    • 9.10. Sharding
    • 9.11. Upgrading
      • 9.11.1. Upgrading to 3.1
      • 9.11.2. Upgrading to 3.0
      • 9.11.3. Upgrading to 2.8
      • 9.11.4. Upgrading to 2.6
      • 9.11.5. Upgrading to 2.5
      • 9.11.6. Upgrading to 2.4
      • 9.11.7. Upgrading to 2.3
      • 9.11.8. Upgrading to 2.2
  • 10. Auditing
    • 10.1. Configuration
    • 10.2. Events
  • 11. Troubleshooting
    • 11.1. arangod
    • 11.2. Emergency Console
    • 11.3. Datafile Debugger
    • 11.4. Arangobench
  • 12. Architecture
    • 12.1. Write-ahead log
  • 13. Release notes
    • 13.1. Whats New in 3.1
    • 13.2. Incompatible changes in 3.1
    • 13.3. Whats New in 3.0
    • 13.4. Incompatible changes in 3.0
    • 13.5. Whats New in 2.8
    • 13.6. Incompatible changes in 2.8
    • 13.7. Whats New in 2.7
    • 13.8. Incompatible changes in 2.7
    • 13.9. Whats New in 2.6
    • 13.10. Incompatible changes in 2.6
    • 13.11. Whats New in 2.5
    • 13.12. Incompatible changes in 2.5
    • 13.13. Whats New in 2.4
    • 13.14. Incompatible changes in 2.4
    • 13.15. Whats New in 2.3
    • 13.16. Incompatible changes in 2.3
    • 13.17. Whats New in 2.2
    • 13.18. Whats New in 2.1
  • 14. Appendix
    • 14.1. References
      • 14.1.1. db
      • 14.1.2. collection
    • 14.2. JavaScript Modules
      • 14.2.1. console
      • 14.2.2. crypto
      • 14.2.3. fs
      • 14.2.4. request
      • 14.2.5. actions
      • 14.2.6. queries
      • 14.2.7. Write-ahead log
      • 14.2.8. Task Management
    • 14.3. Deprecated
      • 14.3.1. Simple Queries
        • 14.3.1.1. Sequential Access
        • 14.3.1.2. Pagination
        • 14.3.1.3. Modification Queries
        • 14.3.1.4. Geo Queries
        • 14.3.1.5. Fulltext Queries
      • 14.3.2. Actions
        • 14.3.2.1. Delivering HTML Pages
        • 14.3.2.2. Json Objects
        • 14.3.2.3. Modifying
    • 14.4. Error codes and meanings
    • 14.5. Glossary
  • Published with GitBook

ArangoDB v3.1.0 Documentation

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