UNPKG

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