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
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...