The easiest way to get started with GraphQL is to use the built-in GraphQL playground.
In Astra DB, go to the Connect tab for your database, choose GraphQL under the
Connect using an API and you’ll see instructions for accessing the playground.
The GraphQL playground launches the url:
in your browser.
Add your application token to the HTTP HEADERS section at the lower lefthand corner of the GraphQL Playground window:
Once in the playground, you can create new schema and interact with the GraphQL APIs. The server paths are structured to provide access to creating and querying schema, as well as querying and modifying Cassandra data:
An API for exploring and creating schema, or Data Definition Language (DDL). For example, Astra DB has queries to create, modify, or drop tables, such as
An API for querying and modifying your tables using GraphQL fields. Generally, you will start the playground with
/api/graphql-schemato create some schema.