> ## Documentation Index
> Fetch the complete documentation index at: https://docs.novig.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GraphQL Playground

> Interactive explorer for the Novig GraphQL API

## Apollo Studio Sandbox

The easiest way to explore the Novig GraphQL API is through Apollo Studio Sandbox, a powerful and free GraphQL IDE.

<Card title="Open Playground" icon="play" href="https://studio.apollographql.com/sandbox/explorer/">
  Launch Apollo Studio Sandbox
</Card>

## Connecting to Novig

<Steps>
  <Step title="Open Apollo Sandbox">
    Navigate to [Apollo Studio Sandbox](https://studio.apollographql.com/sandbox/explorer/)
  </Step>

  <Step title="Set the Endpoint">
    Enter the Novig GraphQL URL in the connection settings: `https://gql.novig.us/v1/graphql`
  </Step>

  <Step title="Fetch Schema">
    Apollo will automatically introspect and load the API schema
  </Step>

  <Step title="Run Your First Query">
    Try a simple query to get started (example below)
  </Step>
</Steps>

## Your First Query

Paste this query into the Apollo Sandbox editor and click **Run**:

```graphql theme={null}
query TestQuery {
    event(where: { _and: [{ _or: [{ status: { _eq: "OPEN_PREGAME" } }, { status: { _eq: "OPEN_INGAME" } }]}, { game: { league: { _eq: "MLB" } } }]}) {
        description
        id
        game {
            scheduled_start
        }
        markets {
            description
            outcomes(where: { _or: [{last: { _is_null: false }}, {available: { _is_null: false }}] }) {
                description
                last
                available
            }
        }
    }
  }
```

<Note>
  Remember: No authentication is required. You can start querying immediately!
</Note>

## Using cURL

You can also query the GraphQL API directly from the command line:

```bash theme={null}
curl -X POST https://gql.novig.us/v1/graphql \
  -H "Content-Type: application/json" \
  -d '{
    "query": "query { market(id: \"123e4567-e89b-12d3-a456-426614174001\") { id description type } }"
  }'
```
