UNPKG

@omnigraph/raml

Version:

This package generates `GraphQLSchema` instance from **RAML API Document** (`.raml`) file located at a URL or FileSystem by resolving the JSON Schema dependencies. It uses `@omnigraph/json-schema` by generating the necessary configuration.

10 lines (9 loc) 387 B
import { JSONSchemaLoaderOptions } from '@omnigraph/json-schema'; export interface RAMLLoaderOptions extends Partial<JSONSchemaLoaderOptions> { source: string; selectQueryOrMutationField?: RAMLLoaderSelectQueryOrMutationFieldConfig[]; } export interface RAMLLoaderSelectQueryOrMutationFieldConfig { type: 'query' | 'mutation' | 'Query' | 'Mutation'; fieldName: string; }