Skip to main content
Follow the REST app guide. Use providerEndpoint with provider couchbase.collection.observations and the HTTPS Query-service origin, such as https://db.example.com:18093, and /query/service. Use header auth with name: "Authorization" and prefix: "Basic " and seal the Base64 encoding of username:password. The account needs query-select access and the collection needs an index that can serve an ordered key scan. Set selection to bucket.scope.collection. Pass the same label to the receiver binder and as the app’s data. Initialize with { profile: { mode: "provider", provider: "couchbase.collection.observations", limit: 10, selection: "store.inventory.orders" } }. Couchbase runs a read-only SQL++ query with a bound document-ID cursor and page limit. The feed stores returned documents and CAS text by document ID, restarts after an empty page, and retains observations of missing or expired documents. Sweeps observe current documents as each page reads them. The feed accepts up to 100 records and 36 KiB per response and requires the bundled parser artifact. Provider API reference