1 | import { DocumentNode } from 'graphql';
|
2 | import { Observable } from 'rxjs';
|
3 | import { FetchResult } from 'apollo-link';
|
4 | import { Apollo } from './Apollo';
|
5 | import { MutationOptionsAlone, R } from './types';
|
6 | export 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 | }
|