Open watery opened 3 years ago
I also want to set the data types in the JSONB properties, specifying the type, and set up the correct search using indexes, taking into account the specified data types. Will there be support for a command like: Create (A:person {“bday”: “11/11/2010”::date,"happy": true::boolean, ...})?
I just installed AgensGraph and I'm giving it a try. Consider that I'm pretty new to Postgres too.
I may need to add dates / timestamps as properties in my use case, and it seems from the documentation that they're not supported. But further in the page properties are described as being of type JSONB, and they shouldn't have types (that's not totally clear to me).
Anyway, given:
This cypher query works, but makes me feel there's a lexicographical comparison, not a temporal one:
I've seen JSONB fields casted, so I tried the following one, but a syntax error is returned:
while this looks somewhat like the same query in SQL, where I can cast the value:
Are cast operators unsupported in AG Cypher? Or am I using the wrong syntax?