This repository was archived by the owner on Sep 29, 2023. It is now read-only.
This repository was archived by the owner on Sep 29, 2023. It is now read-only.
📚 Documentation: Need to update the Queries section for Python users asap #374
Open
Description
💭 Description
I wanted to change the docs but I really couldn't run the phtml
anyways if possible please make these changes in the docs
Query.startsWith("name", "Once upon a time")
Query.endsWith("name", "happily ever after.")
The above lines of code do not work with Python SDK when I went to the source file the snippets of code were
@staticmethod
def starts_with(attribute, value):
return Query.add_query(attribute, "startsWith", value)
@staticmethod
def ends_with(attribute, value):
return Query.add_query(attribute, "endsWith", value)
So I made the changes and my updated code was
Query.starts_with("name", "Once upon a time")
Query.ends_with("name", "happily ever after.")
But I'm still getting this error appwrite.exception.AppwriteException: Query method not valid: startsWith
Is this a bug ?
👀 Have you spent some time to check if this issue has been raised before?
- I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
- I have read the Code of Conduct