GraphQL IDE for Devs
The IDE to create, explore, manage, and test GraphQL APIs with ease.
Install this package in your project:
npm install @chillicream/bananacakepop-graphql-ide --save-dev
# or
yarn add @chillicream/bananacakepop-graphql-ide --dev
# or
pnpm add @chillicream/bananacakepop-graphql-ide --save-dev
🔗 Usage with express
Install the middleware in your project:
npm install @chillicream/bananacakepop-express-middleware --save-dev
# or
yarn add @chillicream/bananacakepop-express-middleware --dev
# or
pnpm add @chillicream/bananacakepop-express-middleware --save-dev
Add it to your /graphql
route or any other (e.g., /bcp
):
import express from "express";
import bcpMiddleware from "@chillicream/bananacakepop-express-middleware";
// ...
const app = express();
app.use(
"/graphql",
// for `cdn` hosted version
bcpMiddleware({ mode: "cdn" })
// for `self` hosted version
// bcpMiddleware({ mode: "self" }),
// place here your graphql middleware and others
);
app.listen(3000, () => {
console.log(`GraphQL on http://localhost:3000/graphql`);
});