Collections and Scopes

  • concept
February 16, 2025
+ 12
Fully supported in Couchbase Server 7.0.

The Collections feature in Couchbase Server is fully implemented in the 3.2 API version of the Couchbase SDK.

Information on Collections can be found in the server docs.

Using Collections & Scopes

Access a non-default collection, in the default scope, with:

bucket.collection('bookings') # in default scope

And for a non-default scope:

bucket.scope('tenant_agent_00').collection('bookings')