Video

Document API in Astra DB - First Queries with Swagger

DataStax Astra DB uses the Stargate Document API to modify and query data stored as unstructured JSON documents in collections. Because the Document API uses schemaless data, no data modeling is required! This short demo shows how to use the built in swagger client.

You can get the Javascript 'Collections' client for Astra from NPM ( https://www.npmjs.com/package/@astraj... )

To use the Document API, you must define the namespace that will store collections. Collections store unstructured JSON documents. Documents can themselves hold multiple documents.

Multiple collections are contained in a namespace, but a collection cannot be contained in multiple namespaces.

Only namespaces need to specifically created. Collections are specified when a document is inserted.