Features
Docs
CLI
Benchmarks
Examples

© 2024 MoroJs

@morojs/moro


@morojs/moro / GraphQLJsAdapter

Class: GraphQLJsAdapter

Defined in: src/core/graphql/adapters/graphql-js-adapter.ts:20

GraphQL.js adapter implementation Uses the official graphql-js library with optional JIT compilation

Implements

Constructors

Constructor

new GraphQLJsAdapter(): GraphQLJsAdapter

Returns

GraphQLJsAdapter

Methods

cleanup()

cleanup(): Promise<void>

Defined in: src/core/graphql/adapters/graphql-js-adapter.ts:153

Cleanup resources

Returns

Promise<void>

Implementation of

GraphQLAdapter.cleanup


execute()

execute(request): Promise<GraphQLResponse>

Defined in: src/core/graphql/adapters/graphql-js-adapter.ts:69

Execute a GraphQL query/mutation

Parameters

request

GraphQLRequest

Returns

Promise<GraphQLResponse>

Implementation of

GraphQLAdapter.execute


getIntrospection()

getIntrospection(): any

Defined in: src/core/graphql/adapters/graphql-js-adapter.ts:111

Get schema introspection data

Returns

any

Implementation of

GraphQLAdapter.getIntrospection


getSchema()

getSchema(): any

Defined in: src/core/graphql/adapters/graphql-js-adapter.ts:125

Get the underlying schema object

Returns

any

Implementation of

GraphQLAdapter.getSchema


getSchemaSDL()

getSchemaSDL(): string

Defined in: src/core/graphql/adapters/graphql-js-adapter.ts:120

Get schema SDL (Schema Definition Language)

Returns

string

Implementation of

GraphQLAdapter.getSchemaSDL


getStats()

getStats(): GraphQLStats

Defined in: src/core/graphql/adapters/graphql-js-adapter.ts:129

Get adapter statistics

Returns

GraphQLStats

Implementation of

GraphQLAdapter.getStats


initialize()

initialize(options): Promise<void>

Defined in: src/core/graphql/adapters/graphql-js-adapter.ts:33

Initialize the adapter with schema and options

Parameters

options

GraphQLAdapterOptions

Returns

Promise<void>

Implementation of

GraphQLAdapter.initialize