@morojs/moro / GraphQLAdapter
Interface: GraphQLAdapter
Defined in: src/core/graphql/adapter.ts:8
GraphQL adapter interface Adapters handle schema building, query execution, and introspection
Methods
cleanup()
cleanup():
Promise<void>
Defined in: src/core/graphql/adapter.ts:42
Cleanup resources
Returns
Promise<void>
execute()
execute(
request):Promise<GraphQLResponse>
Defined in: src/core/graphql/adapter.ts:17
Execute a GraphQL query/mutation
Parameters
request
GraphQLRequest
Returns
Promise<GraphQLResponse>
getIntrospection()
getIntrospection():
any
Defined in: src/core/graphql/adapter.ts:22
Get schema introspection data
Returns
any
getSchema()
getSchema():
any
Defined in: src/core/graphql/adapter.ts:32
Get the underlying schema object
Returns
any
getSchemaSDL()
getSchemaSDL():
string
Defined in: src/core/graphql/adapter.ts:27
Get schema SDL (Schema Definition Language)
Returns
string
getStats()
getStats():
GraphQLStats
Defined in: src/core/graphql/adapter.ts:37
Get adapter statistics
Returns
initialize()
initialize(
options):Promise<void>
Defined in: src/core/graphql/adapter.ts:12
Initialize the adapter with schema and options
Parameters
options
Returns
Promise<void>