Results for: sync function

Augment your Sync Function with Roles in Couchbase Sync Gateway

Roles in Sync Gateway are often overlooked because they seem more complex to use than Users and Channels. However, they provide one additional layer of abstraction and can greatly simplify your data model. Take the example of an application to...

Couchbase Mobile: Changing read access in the Sync Function and replicating the changes to an Android app

With new tools such as Android Public Beta Testing and Testflight for iOS, shipping new updates of a native mobile application more regularly is a growing trend. In addition to changing the business logic and data models more regularly, there...

Testing your Sync Gateway functions with synctos

Synctos includes a built-in test-helper module that helps you to write tests that validate your document definitions. It's always a good idea to test your code/configuration for bugs, and your synctos document definitions are no different.

Capella App Services Expands Cloud Support for Fully Managed Offline-first Data Sync

Capella App Services Expands Cloud Support for Fully Managed Offline-first Data Sync

We’re pleased to announce the general availability of Capella App Services on Google Cloud Platform (GCP). The cloud expansion comes on the heels of the recent public launch of Capella App Services on AWS. Capella App Services is a fully...

Creating Python and JavaScript User Defined Functions For Geospatial Queries

Creating Python and JavaScript User Defined Functions For Geospatial Queries

SQL++ (or Couchbase N1QL) queries can access data stored in your Couchbase cluster in a variety of ways. There are situations where having the business logic as part of your data queries can also be beneficial. SQL++ supports this with...

April 20, 2022
Postman Collections for Sync Gateway Administration

Postman Collections for Sync Gateway Administration

Web-based clients can administer, monitor and interact with Couchbase Sync Gateway using a RESTful interface. With the Sync Gateway 3.0 release, database administration is done exclusively through the admin REST endpoint. Postman is an API test, development and documentation tool...

Cluster-Aware Configuration Examples for Sync Gateway

Cluster-Aware Configuration Examples for Sync Gateway

The Sync Gateway 3.0 release introduces a modular, cluster-aware approach to Sync Gateway configuration that supersedes the node-level JSON configuration file based approach from earlier versions. In this post, we will take a deeper look at the new approach to...

ML Meets NoSQL: Integrating Python User-Defined Functions with N1QL for Analytics

ML Meets NoSQL: Integrating Python User-Defined Functions with N1QL for Analytics

After conversations with our customers about the delay in obtaining analytical insights from their Python-based machine learning models, we set out to create a seamless pipeline from Python to Couchbase Analytics that returns faster insights in real time.  Introduction With...

, November 8, 2021
Functional and Integration testing (FIT) Framework

Functional and Integration testing (FIT) Framework

This blog describes the design and development of the test framework i.e FIT framework for Couchbase transactions in a distributed environment. We’ll start out by introducing you to high-level architectural insight, then we’ll walk you through the development of the...

November 2, 2021
How to Add Full-Text Search Functionality to Your JavaScript App

How to Add Full-Text Search Functionality to Your JavaScript App

It’s unavoidable: If you’re working with a document database, you’re eventually going to need to search for (and through) your JSON documents. In this tutorial, you’ll add the full-text search capabilities of Couchbase to the basic REST API built with...

September 20, 2021
How to Create Async Get/Upsert Calls with Node.js and Couchbase

How to Create Async Get/Upsert Calls with Node.js and Couchbase

If you’re a JavaScript dev who’s transitioning to use Node.js, you’ll want to take advantage of async functions. That’s because asynchronous API calls don’t block your code and return promises. In this post, I’ll show you how to create async...

August 30, 2021
OIDC Authorization Code Flow for Client Authentication in Couchbase Sync Gateway [Part 3 of 3]

OIDC Authorization Code Flow for Client Authentication in Couchbase Sync Gateway [Part 3 of 3]

Couchbase Sync Gateway supports OpenID Connect or OIDC-based client authentication. In this context, clients may be Couchbase Lite clients that synchronize data with Sync Gateway over the Internet using the websockets-based replication protocol or they could be web frontend or...