UNPKG

591 BTypeScriptView Raw
1import { DocumentNode } from 'graphql';
2import { Observable } from 'rxjs';
3import { FetchResult } from '@apollo/client/core';
4import { TypedDocumentNode } from '@graphql-typed-document-node/core';
5import { Apollo } from './apollo';
6import { MutationOptionsAlone, EmptyObject } from './types';
7export declare class Mutation<T = {}, V = EmptyObject> {
8 protected apollo: Apollo;
9 readonly document: DocumentNode | TypedDocumentNode<T, V>;
10 client: string;
11 constructor(apollo: Apollo);
12 mutate(variables?: V, options?: MutationOptionsAlone<T, V>): Observable<FetchResult<T>>;
13}