Skip to content

Commit

Permalink
fix(api-gateway): 🐛 add createdAt updatedAt into default GraphQL schema
Browse files Browse the repository at this point in the history
  • Loading branch information
boomspeed94 committed Nov 23, 2020
1 parent f2fcf20 commit 15f55d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/api-gateway/src/graphql-relay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ export function createGraphQl(config: CreateGraphQlConfig): CreateGraphQlOutput[

logger?.debug('create connection for entity:', name);

fields.push({ name: 'createdAt', type: FieldTypeEnum.string });
fields.push({ name: 'updatedAt', type: FieldTypeEnum.string });

const metaData: DMeta = {
entity,
};
Expand Down

0 comments on commit 15f55d1

Please sign in to comment.