DataStax Astra Developer Hub

Welcome to the DataStax Astra Developer Hub. You'll find comprehensive guides and documentation to help you start working with DataStax Astra as quickly as possible. Use the included APIs to create, modify, and terminate databases, and interact with the databases you create. Let's do it!

Astra Docs      API Reference      CQL for Astra

Katacoda scenarios

Katacoda scenarios can help guide you through various ways to use DataStax Astra.

Using the REST API

If you are using the Astra REST API, this scenario will walk you through the following parts:

  • Setting up environment variables
  • Creating a tabletable - Stores data based on a primary key, which consists of a partition key and optional clustering columns. A partition key defines the node on which the data is stored, and divides data into logical groups. Define partition keys that evenly distribute the data and also satisfy specific queries. Query and write requests across multiple partitions should be avoided if possible. A clustering column defines the sort order of rows within a partition. When defining a clustering column, consider the purpose of the data. For example, retrieving the most recent transactions, sorted by date, in descending order. with the REST API
  • Adding a rowrow - 1) Columns that have the same primary key. 2) A collection of cells per combination of columns in the storage engine. to your table with the REST API
  • Retrieving rows using the REST API

Using the GraphQL API

If you are using the Astra GraphQL API, this scenario will walk you through the following parts:

  • Getting a token
  • Inserting a record with cURL
  • Querying a record using GraphQL and JavaScript
  • Adding a record with GraphQL and JavaScript

Connecting with CQL shell

If you are using the CQL shell, this scenario will walk you through the following parts:

  • Installing and configuring the CQL shellCQL shell - The Cassandra Query Language shell (cqlsh) utility.
  • Creating a table
  • Inserting data
  • Querying data

Connecting with CQL shell using Docker

If you are using the CQL shell using Docker, this scenario will walk you through the following parts:

  • Creating a CQL shell container
  • Creating a table
  • Inserting data
  • Querying data

Updated 25 days ago


Katacoda scenarios


Katacoda scenarios can help guide you through various ways to use DataStax Astra.

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.