UNPKG

@omnigraph/sqlite

Version:
28 lines (27 loc) 887 B
import { GraphQLSchema } from 'graphql'; interface GraphQLSQLiteLoaderOpts { infile?: string; db?: string; cwd?: string; } export default function loadGraphQLSchemaFromSQLite(_name: string, opts: GraphQLSQLiteLoaderOpts): Promise<GraphQLSchema>; export declare function loadGraphQLSchemaFromOptions(opts: GraphQLSQLiteLoaderOpts): Promise<GraphQLSchema>; export declare function loadSQLiteSubgraph(name: string, opts: GraphQLSQLiteLoaderOpts): ({ cwd }: { cwd: string; }) => { name: string; schema$: Promise<GraphQLSchema>; }; interface SqliteTransportEntry { kind: 'sqlite'; location: string; options: { type: 'infile' | 'db'; }; cwd?: string; } export declare function getSubgraphExecutor(transportContext: { transportEntry: SqliteTransportEntry; cwd: string; }): Promise<import("@graphql-tools/utils").Executor>; export {};