Skip to content

Commit

Permalink
provide types to graph registry
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskalmar committed Jan 31, 2021
1 parent 09f0a64 commit 86eb998
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion 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: {},
};

0 comments on commit 86eb998

Please sign in to comment.