movio / bramble

A federated GraphQL API gateway
https://movio.github.io/bramble/
MIT License
497 stars 55 forks source link

How to handle schema with field type graphql.DateTime #279

Open cheku-bhutan opened 2 weeks ago

cheku-bhutan commented 2 weeks ago

Bramble is unable to handle the service with schema containing field with type graphql.DateTime,

If anyone here has solution how to handle DateTime in Bramble, Please help me with sample code.

pkqk commented 2 weeks ago

Hi @cheku-bhutan what is the error you are getting? and what graphql module are you including?

Do you have

scalar DateTime

in your schema? GraphQL doesn't have a DateTime type but if the schema defines a custom scalar then the parser treats it as a string and the graphql library you are using can map it to a type.