UNPKG

apollo-contentful-rest-link

Version:

Perform GraphQL queries against Contentful’s Rest API. No more, query size limits! No more, query complexities!!

37 lines (32 loc) • 757 B
import { ApolloLink } from '@apollo/client' /** * ContentfulRestLink */ export interface ClientOptions { space: string; accessToken: string; previewAccessToken?: string; environment?: string; insecure?: boolean; host?: string; basePath?: string; httpAgent?: any; httpsAgent?: any; proxy?: any; headers?: any; adapter?: () => void; resolveLinks?: boolean; removeUnresolved?: boolean; retryOnError?: boolean; logHandler?: () => void; application?: string; integration?: string; timeout?: number; retryLimit?: number; } export interface QueryDefaults { include?: number; } export declare class ContentfulRestLink extends ApolloLink { constructor(clientOptions: ClientOptions, queryDefaults?: QueryDefaults); }