Skip to main content

AbimongoGraphQL

@abimongo/core v1.1.4


@abimongo/core / AbimongoGraphQL

Class: AbimongoGraphQL

Defined in: core/src/graphql/AbimongoGraphQL.ts:33

AbimongoGraphQL provides GraphQL schema generation with Redis integration and RBAC support. AbimongoGraphQL

Remarks

Supports multi-tenancy and realtime subscriptions via Redis.

Example

const graphql = new AbimongoGraphQL({ useRedis: true });

Constructors

Constructor

new AbimongoGraphQL(options): AbimongoGraphQL

Defined in: core/src/graphql/AbimongoGraphQL.ts:42

Parameters

options

AbimongoGraphQLOptions = {}

Returns

AbimongoGraphQL

Methods

customResolvers()

customResolvers(resolver): AbimongoGraphQL

Defined in: core/src/graphql/AbimongoGraphQL.ts:63

Add custom resolvers (will be merged)

Parameters

resolver

any

Returns

AbimongoGraphQL


customTypeDefs()

customTypeDefs(schema): AbimongoGraphQL

Defined in: core/src/graphql/AbimongoGraphQL.ts:51

Add custom typeDefs (string or SDL array)

Parameters

schema

string | string[]

Returns

AbimongoGraphQL


generateSchema()

generateSchema(models?): Promise<GraphQLSchema>

Defined in: core/src/graphql/AbimongoGraphQL.ts:338

Dynamically generate GraphQL Schema

Parameters

models?

any

Returns

Promise<GraphQLSchema>


subscriptions()

subscriptions(): boolean

Defined in: core/src/graphql/AbimongoGraphQL.ts:331

Returns

boolean