Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
11-29-2018 11:26 PM
How do I write grapql schema for created datetime property and make it assign a current datetime for my selected timezone with @cypher directive?
I'm asking for graphql idl to use with GraphQL plugin of neo4j.
Thanks
11-30-2018 12:00 AM
Great question, I still have to add support for datatime and spatial for the plugin and also across the other APIs.
Do you by chance have an example of other graphql apis that support those so that we can be consistent with them? I guess we'd have to go with something more complex than a simple scalar, i.e. an input/object-type to represent (local)date(time) and spatial correctly.
Michael
12-01-2018 02:12 AM
Hi micheal, other graphql workflows handle this use case with default-value usually in ORM layer not in graphql schema itself but in our case GraphqlQl plugin need to handle the task of ORM used with other types of databases for their graphql api.
Maybe implementing @default directive for this issue would cover more use cases down the line i guess.
Just my 2cents. Thanks for the quick reply.
All the sessions of the conference are now available online