Back

Query.contains not in node-appwrite 12.0.0

  • 0
  • Self Hosted
  • Databases
djcali
12 Mar, 2024, 15:50

Hello, I am using SvelteKit and node-appwrite 12.0.0 and the Query.contains type does not exist.

import sdk, { Query } from 'node-appwrite';

This is how i am attempting to use it const docs = await databaseNode.listDocuments(dbId, PRIVATE_COLLECTION_USER_DATA, [Query.contains('search', query)]);

When i look at the package index.d.ts where it has export class Query {. its not listed as a type

Any ideas? Thanks

TL;DR
Issue: Query.contains type missing in node-appwrite 12.0.0 for developers using SvelteKit. Solution: The Query.contains type is not available in node-appwrite 12.0.0. Consider alternative approaches or reach out to the node-appwrite community for possible workarounds.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more