1 | import { DocumentNode } from 'graphql';
|
2 | import { ApolloQueryResult } from 'apollo-client';
|
3 | import { Observable } from 'rxjs';
|
4 | import { Apollo } from './Apollo';
|
5 | import { QueryRef } from './QueryRef';
|
6 | import { WatchQueryOptionsAlone, QueryOptionsAlone, R } from './types';
|
7 | export declare class Query<T = {}, V = R> {
|
8 | protected apollo: Apollo;
|
9 | readonly document: DocumentNode;
|
10 | client: string;
|
11 | constructor(apollo: Apollo);
|
12 | watch(variables?: V, options?: WatchQueryOptionsAlone<V>): QueryRef<T, V>;
|
13 | fetch(variables?: V, options?: QueryOptionsAlone<V>): Observable<ApolloQueryResult<T>>;
|
14 | }
|