Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
10-20-2020 11:35 AM
It would appear that suddenly I am unable to use the formatted property for _Neo4jDateTimeInput fields. What changed?
I'm pretty sure I've been able to do this in the past without issue. (see below please) I've seen another thread here: https://github.com/neo4j-graphql/neo4j-graphql-js/issues/495 about someone having a similar issue and the individual broke the datetime down into constituent parts hour, minute, seconds, day, month, year etc... but why has the formatted property disappeared and where is this change documented? or am i losing my mind? thanks.
mutation UpdateIncident($id:ID!, $createdAt: _Neo4jDateTimeInput ){
UpdateIncident(
id: $id
createdAt: $createdAt
) {
id,
title,
createdAt {
formatted
}
}
}
query variables:
{
"id": "3094896f-b779-4148-b88e-95254b5b88d6",
"createdAt": {"formatted": "2020-10-20T12:49:01-05:00"}
}
error:
{
"errors": [
{
"message": "No such field: formatted",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"UpdateIncident"
],
"extensions": {
"code": "INTERNAL_SERVER_ERROR",
"exception": {
"code": "Neo.ClientError.Statement.ArgumentError",
"name": "Neo4jError"
}
}
}
],
"data": {
"UpdateIncident": null
}
}
11-30-2020 04:22 AM
Hi, this could be the same issue like here:
https://github.com/neo4j-graphql/neo4j-graphql-js/issues/547
All the sessions of the conference are now available online