Skip to content

DateTime deserialized as null or default when using version >= 5 #464

@cmaart

Description

@cmaart

Describe the bug
Neo4j Driver seems to return DateTime as lazy-ZonedDateTime which is not deserialized as DateTime.

Seems to happen only when using return as anonymous object not when returning types directly.
Works:
Return.As<Model>("n")
DateTime properties are null
Return(() => new { MyModel = Return.As<Model>("n")})

Usage:
image

Deserialization in Neo4jClient shows Json contains lazy-ZonedDateTime
image

Downgrading to the latest 4.x version fixes the issue.

Versions:

  • Neo4jClient >= 5
  • Bolt
  • .NET 6
  • 5.2.0 Enterprise

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions