Legacy Query Language

Legacy-to-DQL Reference

This article covers example mappings from Legacy Query APIs to DQL for basic CRUD operations as well as syncing data with the SDK.

Creating Documents




Inserting a Single Document

Legacy

JS


DQL

JS


Inserting Multiple Documents

Legacy

JS


DQL

JS


Inserting Initial/Default Documents

This is the ability to insert documents at time 0. For more information see INSERT with INITIAL DOCUMENTS.

Legacy

JS


DQL

JS


Upserting Documents

Legacy supports upserting by default where DQL requires the policy to be explicitly set.

Legacy

JS


DQL

JS


Reading Data

Querying Data

Legacy

JS


DQL

JS


Querying Data by ID

Legacy

JS


DQL

JS


Querying Data with Limits

Legacy

JS


DQL

JS


Querying for Null Values

Legacy

JS


DQL

JS


Querying with Arguments

Legacy

JS


DQL

JS




Observing Data Changes

Legacy

JS


DQL

JS




Updating Documents

Updating a Single Document

Legacy

JS


DQL

JS


Updating Multiple Documents

Legacy

JS


DQL

JS


Updating Multiple Fields

Legacy

JS


DQL

JS




Deleting Documents

Evicting Documents

Legacy

JS


DQL

JS


Deleting Documents

Legacy

JS


DQL

JS






Syncing Data From Other Peers



Legacy

JS


DQL

JS