MemoryDatabase

Class in @sentio/sdk/testing

Defined in @sentio/sdk/testing

Constructors

Constructor

new MemoryDatabase(dbContext: MemoryDatabaseContext): MemoryDatabase;

Parameters

ParameterType
dbContextMemoryDatabaseContext

Returns

MemoryDatabase

Properties

PropertyModifierType
_schemapublicGraphQLSchema
dbpublicMap<string, Record<string, any>>
dbContextreadonlyMemoryDatabaseContext
lastDbRequestpublicDBRequest | undefined

Accessors

schema

Get Signature

get schema(): GraphQLSchema;
Returns

GraphQLSchema


store

Get Signature

get store(): Store;
Returns

Store

Methods

hasEntity()

hasEntity(entity: string, id: string): any;

Parameters

ParameterType
entitystring
idstring

Returns

any


reset()

reset(): void;

Returns

void


start()

start(): void;

Returns

void


stop()

stop(): void;

Returns

void

On this page