graphql-compose / graphql-compose-elasticsearch

Hide Elastic Search REST API behind GraphQL.
https://graphql-compose.herokuapp.com/elasticsearch/
MIT License
583 stars 77 forks source link

date typeMap #153

Open dmitrkov opened 1 year ago

dmitrkov commented 1 year ago

Hello everyone,

Is it possible to change the date mapping as DateTime type? Because when further stitching the scheme with other schemes, time is cut off and only Date remains

https://github.com/graphql-compose/graphql-compose-elasticsearch/blob/master/src/mappingConverter.ts#L49

It means that we must have the DateTime type in the schema image

farhadnowzari commented 1 year ago

We have the same issue.

we use HotChocolate and when use Schema stitching the Date type in the gateway means only date and not DateTime. so the time part is cut off on the gateway.