cancel
Showing results for 
Search instead for 
Did you mean: 

Join the community at Nodes 2022, our free virtual event on November 16 - 17.

"message": "No such field: formatted",

jonathan
Node Clone

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
  }
}
1 REPLY 1

shek
Node Link

Hi, this could be the same issue like here:
https://github.com/neo4j-graphql/neo4j-graphql-js/issues/547

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit - November 16 - 17, 2022.


Free NODES Training Series


October 19th -

Intro to Neo4j


October 20th -

Healthcare Analytics Using Neo4j


October 25th -

Handling Neo4j data with Apache Hop


October 26th -

Blazing Fast Graphs: Hands-on with Apache Arrow and Neo4j


November 2nd -

Graph EDA Using the Neo4j GDS Client