#
GraphQL IDE
You're viewing documentation for a previous version of this software. Switch to the latest stable version
GraphQL IDEs are quick and convenient ways to develop and test your GraphQL APIs, by making request on it without having to worry about setting up all the proper HTTP method, headers, and body.
Introspection
Pioneer will disable any GraphQL IDE automatically regardless of the specified parameter, if introspection is disabled, as GraphQL IDE relies on introspection to provide syntax highlighting.
#
Apollo Sandbox
Apollo Sandbox is in browser GraphQL IDE developed by Apollo GraphQL and their choice of replacement for
Pioneer can provide 2 option for setting up Apollo Sandbox:
Embedded version of Apollo Sandbox served similarly to
let server = Pioneer(
...,
playground: .sandbox
)
server.applyMiddleware(on: app)
Redirecting route (at /playground) to Apollo Sandbox and a CORSMiddleware.Configuration
for the purpose of allowing Apollo Sandbox through CORS.
let server = Pioneer(
...,
playground: .apolloSandbox // or .redirect(to: .apolloSandbox)
)
let cors = CORSMiddleware(configuration: .graphqlWithApolloSandbox())
app.middleware.use(cors, at: .beginning)
server.applyMiddleware(on: app)
You can also just set this up on your own
Afterwards, you can go to ./playground to open a instance of Apollo Sandbox whether it is the cloud or the locally embedded version.
#
GraphiQL
GraphiQL is the official GraphQL IDE by the GraphQL Foundation. The current GraphiQL version has met feature parity with
/playground
endpoint.
let server = Pioneer(
...,
playground: .graphiql
)
server.applyMiddleware(on: app)
This will result in
GET /graphql
POST /graphql
WS /graphql/websocket
GET /playground # (For GraphiQL)
#
GraphQL Playground
The most common GraphQL IDE is graphql-playground which is a variant of the original GraphiQL with some added improvement, both UI and certain functionalities.
Retired
The
let server = Pioneer(
...,
playground: .playground
)
server.applyMiddleware(on: app)
This will result in
GET /graphql
POST /graphql
WebSocket /graphql/websocket
GET /playground # (For playground)
#
Banana Cake Pop
Banana Cake Pop is both a cloud hosted in browser and a downloable application GraphQL IDE developed by people over at ChilliCream. Banana Cake Pop provide all features available in
Pioneer also can provide redirecting route (at /playground) to Banana Cake Pop and a CORSMiddleware.Configuration
for for the cloud based Banana Cake Pop at https://eat.bananacakepop.com/.
let server = Pioneer(
...,
playground: .redirect(to: .bananaCakePop)
)
let cors = CORSMiddleware(configuration: .graphqlWithBananaCakePop())
app.middleware.use(cors, at: .beginning)
server.applyMiddleware(on: app)
You can also just set this up on your own