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
- Cloud 500 error
- float
Hello everyone, So, I created a column of type **float** with the **min** and **required** options, I noticed that it wouldn't let me set a **2 decimal points ...
- Database backups are not really working
As you can see, backups almost never work and this is repeated behaviour for a long time already. I have the same issue across different databases and different...