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
- Upgrading selfhost version?
It is okay to upgrade version to higher one, of my current version is 1.7.4 to 1.8.1. Is that safe to do cause my clients already have data on that? Also is a...
- Appwrite cloud DB server error 500
Getting this error
- appwrite indexes not working (?
i have this index: ``` "indexes": [ { "key": "single-user-per-event", "type": "unique", ...