graphql 2021-03-23

How to declare timestamp data in the schema.edn?

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

Thank you and what about USER-DEFINED?

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

I got that covered my bad ๐Ÿ™‚

Thank you

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

(please don't send timestamps as strings)