A newer version of this documentation is available.

View Latest

Collections and Scopes

  • concept
March 16, 2025
+ 12
Fully supported in Couchbase Server 7.1.

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

Information on Collections can be found in the server docs.

Using Collections and Scopes

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

golang
bucket.Collection("bookings") // in default scope

And for a non-default scope:

golang
bucket.Scope("tenant_agent_00").Collection("bookings")

Further Reading

To see Collections in action, take a look at our Collections-enabled Travel Sample page.