iI have this query
const result = await databases.listDocuments(config.databaseId, config.collectionId, [
Query.select(['url', 'shortUrl, shortUrlFull']),
Query.offset(0),
Query.limit(1),
Query.equal("shortUrl", [shortUrl])
]);****
And from my understanding, this is requal to "SELECT url, shortUrl, shortUrlFull FROM SOME_COLLECTION WHERW shortUrl = SOME_URL"
I am getting an error while executing this that Attribute is not found in schema.
If I would remove url and shortUrlFull from this select it would most likelly work, but I need all of that.
Anything wrong in my queries here?
well in your select query, it seems like url is in quotes, and shortUrl, shortUrlFull are in the same quotes
why not have two separate queries?
ah crap
I didn't see that typo
Ty
[SOLVED] Database error: "Invalid query: Attribute not found in schema:
Recommended threads
- RowList: The value of total is coming as...
RowList: The value of total is coming as a String, so it throws an error because it’s not parsed into an int. Error: TypeError: \"37\": type 'String' is not a ...
- Appwrite console is too heavy
The Appwrite console is too heavy And all of my services broken Any support , please
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...