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.

property_contains and property_not_contains should use toLower() Cypher string function #424

Open
@pmualaba

Description

@pmualaba

Query

query {
    Product(filter: {name_contains: "iphone"}) {
        id
        type: __typename
        
        name
        isRepresentedAs  {
          rating
          isMany
          timestamp
          Page {
            id
            name
            description
            isRepresentationOf {
              Product  {
                id
                name
              }
            }
          }
        }
    }
}

if my product is stored as "iPhone" or "IPHONE" in the database the above filter is useless...
it is easy to lowercase the searchstring in the application layer but the whole filter is currently implemented case sensitive, which limits its practical usability.
Could the value be wrapped in toLower() cypher string function before applying CONTAINS ?

Thanks for the great work!

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