Strings containing multiple slashes can be matched with AQL by using the ESCAPE keyword followed by a single slash. This will treat the following character as a literal rather than a special character. For example:
LET myString = "C:/documents/slides/"
FOR doc IN documents
FILTER doc.path == ESCAPE(myString, '/') // Escaping the slashes in myString
RETURN doc
This query will match documents whose path
attribute is equal to C:/documents/slides/
.
Asked: 2021-10-11 11:00:00 +0000
Seen: 17 times
Last updated: May 21 '22