Explore the GraphQL graph
Apollo Sandbox lets you explore Riseact's GraphQL schema: types and fields, query and mutation composition, test calls.
Open Apollo Sandbox
Open Apollo Sandbox with the Riseact endpoint
Add the authentication token
Queries and mutations require a Bearer token. In Sandbox:
- Open the Headers tab, at the bottom of the editor.
- Add the header:
- Key:
Authorization - Value:
Bearer <your-token>
- Key:
To obtain a token see Private applications.
How to use Sandbox
The Documentation panel on the left shows the schema: click a field to add it to the query. In the editor in the center, Ctrl+Space opens autocompletion.
Example: reading a campaign's configuration
query {
campaign(id: 123) {
id
title
shown_fields
required_fields
has_one_off
has_subscription
default_amount
asks
}
}
Example: creating a donation
mutation {
checkout_create(data: {
campaign_id: 123,
amount: 25.00,
frequency: ONEOFF,
payment_method_id: 3,
supporter_data: {
first_name: "Mario",
last_name: "Rossi",
email: "mario.rossi@esempio.it",
country: "IT",
privacy: true
}
}) {
id
state
donation_id
}
}