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/nitro-embedded --save-dev
# or
yarn add @chillicream/nitro-embedded --dev
# or
pnpm add @chillicream/nitro-embedded --save-dev
🔗 Usage with express
Install the middleware in your project:
npm install @chillicream/nitro-express-middleware --save-dev
# or
yarn add @chillicream/nitro-express-middleware --dev
# or
pnpm add @chillicream/nitro-express-middleware --save-dev
Add it to your /graphql
route or any other (e.g., /nitro
):
import express from "express";
import nitroMiddleware from "@chillicream/nitro-express-middleware";
// ...
const app = express();
app.use(
"/graphql",
// for `cdn` hosted version
nitroMiddleware({ mode: "cdn" })
// for `embedded` version
// nitroMiddleware({ mode: "embedded" }),
// place here your graphql middleware and others
);
app.listen(3000, () => {
console.log(`GraphQL on http://localhost:3000/graphql`);
});