UNPKG

@loona/core

Version:

App State Management done with GraphQL (core package)

16 lines (15 loc) 550 B
import { DocumentNode } from 'graphql'; import { Context, ResolveFn } from './common'; export interface MutationObject { mutation: DocumentNode; [key: string]: any; } export interface MutationSchema { [key: string]: ResolveFn; } export interface MutationDef { mutation: string; resolve: MutationResolveFn; } export declare type MutationResolveFn = (args: Record<string, any>, context: Context & Record<string, any>) => Promise<any> | any; export declare type MutationMethod = (args: Record<string, any>, context: Context) => any;