In addition to other answers, according to the documentation, you can make a case-insensitive search adding (?i)
at the beginning of the string. For example, if you have a database with the following information:
SELECT * FROM cypher('graph_name', $$
CREATE (:Example {name: 'aaaa'}),
(:Example {name: 'AAAA'}),
(:Example {name: 'aAaA'}),
(:Example {name: 'AaAa'})
$$) AS (result agtype);
You can perform the following case-insensitive search and return the following results:
SELECT * FROM cypher('graph_name', $$
MATCH (v:Example)
WHERE v.name =~ '(?i)Aa'
RETURN v.name
$$) AS (names agtype);
names
--------
"aaaa"
"AAAA"
"aAaA"
"AaAa"
(4 rows)