#Is it possible to search document by permission?
5 messages · Page 1 of 1 (latest)
I think you can use the Query.contains and target the $permissions attribute. But I've not tried this.
I just tried, but doesn't seem to work.. Getting this error:
{"severity":"error","message":"{\"name\":\"AppwriteException\",\"code\":400,\"type\":\"general_query_invalid\",\"response\":{\"message\":\"Invalid query: Attribute not found in schema: $permissions\",\"code\":400,\"type\":\"general_query_invalid\",\"version\":\"1.6.0\"}}"}
Yes, queries are not supported for permissions.
Giive this a 👍 : https://github.com/appwrite/appwrite/issues/5169
Such a coincidence. Looking for the exact same thing. I hope that permissions can be used in queries at some point. 😊