@wundergraph/playground v0.8.4
Cosmo Playground.
A custom graphql playground with Advanced Request Tracing and more built on top of Graphiql.
Installation
npm install @wundergraph/playground
Usage
import { Playground} from "@wundergraph/playground"
import "@wundergraph/playground/style.css"
export const YourComponent {
return (
<Playground
routingUrl={} // the endpoint of the router
hideLogo={} // boolean to hide wundergraph logo
theme={} // 'light' or 'dark';
/>
);
}
Development
This is a version of the playground that is found in cosmo studio that can be built and bundled into the router.
pnpm run build:router
This will build a single html file and update the graphiql.html in the router.
Note: To build it as a plugin just run pnpm build
TODO
This uses components and design language taken from the studio. For now we need to replicate work done for the custom playground in the studio to here. Move common components into its own package to avoid replicating work.
4 months ago
5 months ago
6 months ago
6 months ago
6 months ago
7 months ago
7 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
9 months ago
10 months ago
9 months ago
9 months ago
9 months ago
10 months ago
10 months ago
10 months ago
11 months ago