pothos-query-generator
Version:
Plugin to output 'query.graphql' from pothos to file
16 lines (15 loc) • 511 B
TypeScript
import { SchemaTypes } from "@pothos/core";
import { PothosQueryGeneratorPlugin } from "./index.js";
declare global {
export namespace PothosSchemaTypes {
interface Plugins<Types extends SchemaTypes> {
pothosQueryGenerator: PothosQueryGeneratorPlugin<Types>;
}
interface SchemaBuilderOptions<Types extends SchemaTypes> {
pothosQueryGenerator?: {
depth?: number;
output?: string | null | false;
};
}
}
}