To get started, you will need to install the graphql-request package which allows you to send GraphQL queries and mutations from JavaScript. You can install it using npm by running the following command:
npm install graphql-request
Once you have installed the package, you can use the following code to query data from your GraphQL API: