From 6bbc5c899333c8d16f7de3e1afbabbc9f840f31c Mon Sep 17 00:00:00 2001 From: Johann Pinson Date: Wed, 20 Jun 2018 19:08:58 +0200 Subject: [PATCH] fix(datetime): add `datetime` and `timestamp` detection --- packages/strapi-plugin-graphql/services/GraphQL.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/strapi-plugin-graphql/services/GraphQL.js b/packages/strapi-plugin-graphql/services/GraphQL.js index c345637d1e..e240236ec9 100644 --- a/packages/strapi-plugin-graphql/services/GraphQL.js +++ b/packages/strapi-plugin-graphql/services/GraphQL.js @@ -172,6 +172,8 @@ module.exports = { type = 'Float'; break; case 'date': + case 'datetime': + case 'timestamp': type = 'DateTime'; break; case 'enumeration':