Skip to content

dateTime param illegal #10

@matt-beanland

Description

@matt-beanland

Elixir and Erlang/OTP versions

Erlang/OTP 28 [erts-16.2] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit]

Elixir 1.19.5 (compiled with Erlang/OTP 28)

Operating system

macOS 26.4

Neo4j version

community 5.26.22

Bolty version

0.0.9

Current behavior

when creating a cypher node with a %DateTime{} parameter, such as

 %{ "utcDatetimeUsec" => ~U[2025-05-11 07:45:41.429903Z] }

Bolty.query(conn, query, params) raises

              %Bolty.Error{
                __exception__: true,
                bolt: %{code: "Neo.ClientError.Request.Invalid", message: "Illegal value for field \"params\": Unexpected struct tag: 0x66"},
                code: :request_invalid,
                module: Bolty.BoltProtocol.Message.RunMessage,
                packstream: nil
              }

Expected behavior

We expected the create to succeed with the utcDateTimeUsec property having at the appropriate neo4j localdatetime value.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions