0
# GraphQL Explorer
1
2
Built-in GraphQL development tools including GraphQL Playground, GraphiQL, and Apollo Studio integration for API exploration and testing.
3
4
## Capabilities
5
6
### Explorer Classes
7
8
```python { .api }
9
class Explorer:
10
"""Base class for GraphQL explorers."""
11
def __init__(self, title: str = "Ariadne GraphQL"): ...
12
13
class ExplorerPlayground(Explorer):
14
"""GraphQL Playground explorer."""
15
16
class ExplorerGraphiQL(Explorer):
17
"""GraphiQL explorer."""
18
19
class ExplorerApollo(Explorer):
20
"""Apollo Studio explorer."""
21
22
class ExplorerHttp405(Explorer):
23
"""Explorer that returns HTTP 405."""
24
```
25
26
### Template Utilities
27
28
```python { .api }
29
def render_template(template: str, **context) -> str:
30
"""Render HTML template with context."""
31
32
def escape_default_query(query: str) -> str:
33
"""Escape default query for HTML embedding."""
34
```
35
36
## Usage Examples
37
38
```python
39
from ariadne.asgi import GraphQL
40
from ariadne.explorer import ExplorerPlayground
41
42
# Enable GraphQL Playground
43
app = GraphQL(
44
schema,
45
explorer=ExplorerPlayground(title="My API")
46
)
47
```