From 15f55d14a33198c2ee2f2b3cb5dee6b61842b370 Mon Sep 17 00:00:00 2001 From: truongnguyen Date: Mon, 23 Nov 2020 14:08:43 +0700 Subject: [PATCH] fix(api-gateway): :bug: add createdAt updatedAt into default GraphQL schema --- packages/api-gateway/src/graphql-relay.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/api-gateway/src/graphql-relay.ts b/packages/api-gateway/src/graphql-relay.ts index a0b9dc7..e0a5440 100644 --- a/packages/api-gateway/src/graphql-relay.ts +++ b/packages/api-gateway/src/graphql-relay.ts @@ -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, };