@chillicream/bananacakepop-graphql-ide
v18.0.0
Published
Banana Cake Pop GraphQL IDE
Downloads
394
Maintainers
Readme
Banana Cake Pop GraphQL IDE
GraphQL IDE for Devs
Description
The IDE to create, explore, manage, and test GraphQL APIs with ease.
Installation
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
Recipes
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`);
});