Skip to content

caseInsensitive filter does not work for fields being resolved via @cypher directive #6800

@andreloeffelmann

Description

@andreloeffelmann

Describe the bug
caseInsensitive filter does not work for fields being resolved via @cypher directive

Type definitions

type Person {
  name: String
  nickname: name: String! @cypher (
		statement: """
			RETURN this.name AS result
		"""
		columnName: "result"
	)
}

To Reproduce

  1. Insert a Person node with name = Toyota
  2. Then run the following Query:
query {
	eq: people( where:{nickname:{caseInsensitive:{eq:"toyota"}}}) {
		name
	}
        contains: people( where:{nickname:{caseInsensitive:{contains:"YO"}}}) {
		name
	}
        startsWith: people( where:{nickname:{caseInsensitive:{startsWith:"to"}}}) {
		name
	}
        endsWith: people( where:{nickname:{caseInsensitive:{startsWith:"tA"}}}) {
		name
	}
        in: people( where:{nickname:{caseInsensitive:{in:["toyota"]}}}) {
		name
	}
}
  1. See error: no results are returned for each query.

Expected behavior
The caseInsensitive filter should work for fields resolved via @cypher directive the same way as for "normal" String fields.

System (please complete the following information):

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingconfirmedConfirmed bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions