If you do not have a database already, follow these steps to create one.
In Upstash Console, click the
GraphQL Explorer from the left sidebar. You will see the browser page. Select your database and select
Redis Strings example. Click to the play/run button to execute the query. You will see the response as below:
You can check other examples and write your own queries in the browser.
Now, in the Query Browser, click to the
Configure button at the top. You will see the page where the GraphQL API URL and access keys are shared as below. You can copy the url end point, access keys. You can download the schema. Also you can revoke the keys and disable the GraphQL API for this database completely. Note that, everthing you see in this page is specific to the selected database.
You can access the same page clicking
GraphQL API button in your database details page.
Create a new NodeJS app with
npm init and then edit index.js as below:
Now, run the app by
node index.js. You will see the output like:
Check here for clients and tools in other languages.