appwrite / sdk-for-node

[READ-ONLY] Official Appwrite Node.js SDK 🟢
https://appwrite.io
BSD 3-Clause "New" or "Revised" License
208 stars 38 forks source link

🐛 Bug Report: Property 'contains' does not exist on type 'typeof Query'.ts(2339) #90

Closed yuvraj108c closed 5 days ago

yuvraj108c commented 4 months ago

👟 Reproduction steps

import { Query } from "node-appwrite";

const query = [Query.contains("labels", "premium")]

👍 Expected behavior

Query should support .contains on typescript

👎 Actual Behavior

It doesn't support .contains, but works, so likely a missing typescript definition

🎲 Appwrite version

Different version (specify in environment)

💻 Operating system

Linux

🧱 Your Environment

"node-appwrite": "^12.0.1", "typescript": "^5"

👀 Have you spent some time to check if this issue has been raised before?

🏢 Have you read the Code of Conduct?

stnguyen90 commented 5 days ago

@yuvraj108c thanks for creating this issue! 🙏🏼 This should be fixed in the newer (13 and above) versions of the node SDK. If you're still having problems, please feel free to create a new issue.