diff --git a/src/graphqlProtocol/graphRegistry.ts b/src/graphqlProtocol/graphRegistry.ts index 26c9676f..57d58ec8 100644 --- a/src/graphqlProtocol/graphRegistry.ts +++ b/src/graphqlProtocol/graphRegistry.ts @@ -1,5 +1,22 @@ +import { GraphQLObjectType } from 'graphql'; +import { Action, Entity, ViewEntity } from '..'; + +export interface GraphRegistryType { + types: { + [key: string]: { + entity: Entity | ViewEntity; + type: GraphQLObjectType; + }; + }; + actions: { + [key: string]: { + action: Action; + }; + }; +} + // collect object types, connections ... for each entity -export const graphRegistry = { +export const graphRegistry: GraphRegistryType = { types: {}, actions: {}, };