UNPKG

apollo-angular

Version:

Use your GraphQL data in your Angular app, with the Apollo Client

16 lines (15 loc) 743 B
import type { DocumentNode } from 'graphql'; import type { TypedDocumentNode } from '@apollo/client/core'; import type { Observable } from 'rxjs'; import { Apollo } from './apollo'; import type { MutationOptionsAlone, EmptyObject, MutationResult } from './types'; import * as i0 from "@angular/core"; export declare class Mutation<T = {}, V = EmptyObject> { protected apollo: Apollo; readonly document: DocumentNode | TypedDocumentNode<T, V>; client: string; constructor(apollo: Apollo); mutate(variables?: V, options?: MutationOptionsAlone<T, V>): Observable<MutationResult<T>>; static ɵfac: i0.ɵɵFactoryDeclaration<Mutation<any, any>, never>; static ɵprov: i0.ɵɵInjectableDeclaration<Mutation<any, any>>; }