The Guild LogoThe Guild Monogram

Search docs

Search icon

Products by The Guild

Products

Hive logoHive blurred logo

Hive

Schema Registry for your GraphQL Workflows

GraphQL Mesh

GraphQL Mesh

Query anything, run anywhere.

Contact Us

@omnigraph/json-schema#

Table of contents#

References#

  • loadGraphQLSchemaFromJSONSchemas

Interfaces#

Type aliases#

Functions#

References#

loadGraphQLSchemaFromJSONSchemas#

Re-exports loadGraphQLSchemaFromJSONSchemas

Type aliases#

HTTPMethod#

Ƭ HTTPMethod: "GET" | "HEAD" | "POST" | "PUT" | "DELETE" | "CONNECT" | "OPTIONS" | "TRACE" | "PATCH"

Defined in#

packages/loaders/json-schema/src/types.ts:36


JSONSchemaOperationConfig#

Ƭ JSONSchemaOperationConfig: JSONSchemaHTTPJSONOperationConfig | JSONSchemaHTTPBinaryConfig | JSONSchemaPubSubOperationConfig

Defined in#

packages/loaders/json-schema/src/types.ts:60

Functions#

createBundle#

createBundle(name, __namedParameters): Promise<JSONSchemaLoaderBundle>

Parameters#

NameType
namestring
__namedParametersJSONSchemaLoaderBundleOptions

Returns#

Promise<JSONSchemaLoaderBundle>

Defined in#

packages/loaders/json-schema/src/bundle.ts:30


getDereferencedJSONSchemaFromOperations#

getDereferencedJSONSchemaFromOperations(__namedParameters): Promise<JSONSchemaObject>

Parameters#

NameType
__namedParametersObject
__namedParameters.cwdstring
__namedParameters.fetch(input: RequestInfo, init?: RequestInit) => Promise<Response>
__namedParameters.loggerLogger
__namedParameters.operationsJSONSchemaOperationConfig[]
__namedParameters.schemaHeaders?Record<string, string>

Returns#

Promise<JSONSchemaObject>

Defined in#

packages/loaders/json-schema/src/getDereferencedJSONSchemaFromOperations.ts:8


getGraphQLSchemaFromBundle#

getGraphQLSchemaFromBundle(__namedParameters, __namedParameters?): Promise<GraphQLSchema>

Generates a local GraphQLSchema instance from previously generated JSON Schema bundle

Parameters#

NameType
__namedParametersJSONSchemaLoaderBundle
__namedParametersJSONSchemaLoaderBundleToGraphQLSchemaOptions

Returns#

Promise<GraphQLSchema>

Defined in#

packages/loaders/json-schema/src/bundle.ts:74


getGraphQLSchemaFromDereferencedJSONSchema#

getGraphQLSchemaFromDereferencedJSONSchema(fullyDeferencedSchema, __namedParameters): Promise<GraphQLSchema>

Parameters#

NameType
fullyDeferencedSchemaJSONSchemaObject
__namedParametersAddExecutionLogicToComposerOptions & { generateInterfaceFromSharedFields?: boolean }

Returns#

Promise<GraphQLSchema>

Defined in#

packages/loaders/json-schema/src/getGraphQLSchemaFromDereferencedJSONSchema.ts:7


loadGraphQLSchemaFromJSONSchemas#

loadGraphQLSchemaFromJSONSchemas(name, options): Promise<GraphQLSchema>

Parameters#

NameType
namestring
optionsJSONSchemaLoaderOptions

Returns#

Promise<GraphQLSchema>

Defined in#

packages/loaders/json-schema/src/loadGraphQLSchemaFromJSONSchemas.ts:6