Skip to content
This repository was archived by the owner on Sep 3, 2021. It is now read-only.
This repository was archived by the owner on Sep 3, 2021. It is now read-only.

Filtering _Neo4jDateTime within AND, OR condition resulting in "Neo4jError: No such field: formatted" #495

Closed
@CraigDeverall

Description

@CraigDeverall

Assignment(filter: { AND: [ { OR: [ {AND: {start_lt: {formatted:$end}, start_gt: {formatted:$start}}}, {AND: {end_lt: {formatted:$end}, end_gt: {formatted:$start}}}, {AND: {start_lt: {formatted:$start}, end_gt: {formatted:$end}}}, ]}, {timeline: {name: $timelineName}} ]}) { id }

This causes an error: "Neo4jError: No such field: formatted"

Where as:
Assignment(filter: {start_lt: {formatted:$end}, start_gt: {formatted:$start}}) { id }
does not.

assignments( filter: { AND: [ { OR: [ { AND: { start_lt: { year: 2021 }, start_gt: { year: 2020 } } } { AND: { end_lt: { year: 2021 }, end_gt: { year: 2020 } } } { AND: { start_lt: { year: 2020 }, end_gt: { year: 2021 } } } ] } { timeline: { name: $timelineName } } ] } )

Is also a valid working query, so it seems just an issue with using {formatted: ""} inside of AND and OR conditions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions