@agatee/graphql
Version:
Graphql module to use with Agatee
14 lines (13 loc) • 472 B
TypeScript
interface ResolverGql {
Query?: {
[key: string]: (...args: any[]) => any;
};
Mutation?: {
[key: string]: (...args: any[]) => any;
};
}
export declare const importSchema: (path: string) => string;
export declare const componentGql: (name: TemplateStringsArray) => string;
export declare const combineSchema: (main: string, ...schemas: string[]) => string;
export declare const combineResolvers: (resolvers: ResolverGql[]) => any;
export {};