UNPKG

@graphql-hive/laboratory

Version:

[Hive](https://the-guild.dev/graphql/hive) is a fully open-source schema registry, analytics, metrics and gateway for [GraphQL federation](https://the-guild.dev/graphql/hive/federation) and other GraphQL APIs.

24 lines (23 loc) 928 B
import { LaboratorySettings } from './settings'; export type BuildCurlCommandInput = { endpoint: string; query: string; /** JSON strings straight off the operation, before template substitution. */ variables?: string | null; headers?: string | null; extensions?: string | null; operationName?: string | null; /** Headers produced by preflight; operation headers win on conflict. */ preflightHeaders?: Record<string, string>; env?: Record<string, unknown>; pluginsState?: Record<string, unknown>; settings?: Pick<LaboratorySettings, 'fetch'>; }; /** * Renders the active operation as a cURL command. * * Mirrors the request the laboratory itself sends (see runActiveOperation in * lib/operations.ts) so the copied command reproduces it, rather than being a * plausible-looking approximation. */ export declare function buildCurlCommand(input: BuildCurlCommandInput): string;