cancel
Showing results for 
Search instead for 
Did you mean: 

"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