I'm trying to wrap my head around using appwrite's queries but some work while others completely fail. For example, if I create an index of type text on an attribute that accepts strings, I can use the Query.search('test') and that works but Query.endsWith('est') fails with 400 status code.
But most concerning is not being able to query the built-in $createdAt attribute. I've created an index for it and have the following code:
Query.greaterThanEqual('$createdAt', Date.now() - 604800000),
])```
I get this error