npm i orpheus-gql
- Import OrpheusGQL into your app
- Configure Orpheus with your endpoint URL
- Navigate to '/orpheus' to use the GUI
const orpheus = require('orpheus-gql');
const orph = oprheus.config('http://localhost:[your-port]/[graphql endpoint]');
app.use('/graphql', graphqlHTTP(request=>{
return {
schema,
context: orpheus.context(),
graphiql: true,
extensions: orpheus.extension
}
}))
app.get('/orpheus', orph)
- Enter your JavaScript GraphQL query in the code editor on the left
- Click Run
- Results will be displayed visually on the graph; scalar values can be viewed below the graph
- Center of the graph represents entry point into your database
- Queries that return multiple items will be represented numerically
- Labels will be given to each resolver of the item
- History button will reveal archived queries displayed in descending order (with the most recent query at the top position)
- Clicking on a previous query will populate the code editor for it to be executed