Back

Is Query contains available on node-appwrite 12.0.1?

  • 0
  • Functions
  • Cloud
Mosh Ontong
29 Apr, 2024, 02:46

Is there a way to use the Query contains since cloud appwrite is now supporting QUery contains

TL;DR
Developers are experiencing issues with using the `Query contains` feature on node-appwrite 12.0.1 due to a typing problem in the SDK. A possible solution is to update to version 12.1.0-rc.4, which may resolve the problem.
Steven
29 Apr, 2024, 02:48

I think there was a typing problem with the SDK. Try using https://www.npmjs.com/package/node-appwrite/v/12.1.0-rc.4

Mosh Ontong
29 Apr, 2024, 02:57

when I am using that:

Mosh Ontong
29 Apr, 2024, 02:57

the type of Document seems not so working

Mosh Ontong
29 Apr, 2024, 02:58
TypeScript
export interface RoleDocument extends Models.Document {
  name: string;
  permissions: string[];
}

export function getRoleIds(roles: RoleDocument[]): string[] {
  return roles.map((role) => role.$id);
}
Mosh Ontong
29 Apr, 2024, 02:59

it somehow broken some of my code, it relates on type

Mosh Ontong
29 Apr, 2024, 02:59

I will try to re install my packages

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