Skip to main content

Playground

GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration).

To test the API, you can use the GraphQL Playground for simple testing.

For this, whether you are on MacOS, Windows or Linux, you can install the playground with the brew utility:

$ brew cask install graphql-playground

Once the installation is complete, you should read in your terminal ๐Ÿบ graphql-playground was successfully installed!.

Now follow the following steps:

  • You can then open the GraphQL Playground application which has just been installed.

  • Then click on the URL ENDPOINT tab, enter the URL provided to you by the Wino team. Then click on Open.

  • Now, at the bottom of the screen, click on HTTP HEADERS and add the following JSON (replace the token with the one provided by the Wino team.):

{
"Authorization": "Bearer {token}"
}
  • Then, copy and paste this query in the left part:
# Write your query or mutation here
{
variants {
edges {
node {
id
name
formattedName
formattedDescription
product {
id
kind
name
tax {
value
}
}
stock {
rawQuantity
}
variantPrices {
edges {
node {
valueIncludingTax
price {
name
taxIncluded
}
}
}
}
}
}
}
}
  • Run the query and have fun!