Hi, I am facing an error when I’m trying to filter nodes by regex.
query {
queryTest(filter: { path: { regexp: "/^//PROD.*/" }})
{
path
}
}
Actually, this regex used to work in DQL, but is not with graphQL.
Below is my the node in schema.
type Test {
id: String! @id
port: String! @search(by: [exact])
path: String! @search(by: [regexp, exact])
}
I tried to escape, and other things, but didn’t works.
I got the error:
“message”: “Dgraph query failed because Dgraph execution failed because line 2 column 72: Expected comma or language but got: PROD.”