Skip to main content

Built and signed on GitHub Actions

Some extra utilities to write MSW GraphQL and rest handlers.

This package works with Node.js, BrowsersIt is unknown whether this package works with Cloudflare Workers, Deno, Bun
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
This package works with Browsers
JSR Score
76%
Published
3 months ago (0.0.35)
property GraphQlHandlersFactory.operation

Type

<
Query extends Record<string, unknown>,
Variables extends GraphQLVariables = GraphQLVariables,
>
(
expectedVariables: Variables,
resultProvider: ResultProvider<Query, Variables>,
options?: HandlerOptions,
) => GraphQLHandler

Add Package

deno add jsr:@dhau/msw-builders

Import symbol

import { type GraphQlHandlersFactory } from "@dhau/msw-builders";

---- OR ----

Import directly with a jsr specifier

import { type GraphQlHandlersFactory } from "jsr:@dhau/msw-builders";

Add Package

npx jsr add @dhau/msw-builders

Import symbol

import { type GraphQlHandlersFactory } from "@dhau/msw-builders";

Add Package

yarn dlx jsr add @dhau/msw-builders

Import symbol

import { type GraphQlHandlersFactory } from "@dhau/msw-builders";

Add Package

pnpm dlx jsr add @dhau/msw-builders

Import symbol

import { type GraphQlHandlersFactory } from "@dhau/msw-builders";

Add Package

bunx jsr add @dhau/msw-builders

Import symbol

import { type GraphQlHandlersFactory } from "@dhau/msw-builders";