@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
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
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
getSchemaSDL()
getSchemaSDL():
string
Defined in: src/core/graphql/adapters/graphql-js-adapter.ts:120
Get schema SDL (Schema Definition Language)
Returns
string
Implementation of
getStats()
getStats():
GraphQLStats
Defined in: src/core/graphql/adapters/graphql-js-adapter.ts:129
Get adapter statistics
Returns
Implementation of
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>