graphql

finchharold 2021-03-23T07:19:09.002300Z

How to declare timestamp data in the schema.edn?

gklijs 2021-03-23T07:57:33.002400Z

There is an example here for using a custom scalar Date, you could do the same for DateTime. It a bit a matter of taste, but you could also make a DateTime type. If you want to have them as Long, you can use a custom scalar for Long as well. https://lacinia.readthedocs.io/en/latest/custom-scalars.html

finchharold 2021-03-23T08:38:05.002600Z

Thank you and what about USER-DEFINED?

gklijs 2021-03-23T08:56:27.002800Z

What do you mean? timestamp as input where itโ€™s an union of several possibilities or something?

finchharold 2021-03-23T10:02:08.003Z

I got that covered my bad ๐Ÿ™‚

finchharold 2021-03-23T10:07:04.003200Z

Thank you

emccue 2021-03-23T13:10:30.003400Z

@kishorekaranam99 Use a custom type that just wraps a unix time int

emccue 2021-03-23T13:10:44.003600Z

(please don't send timestamps as strings)