Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: type Document need support for any property #69

Open
2 tasks done
PratikDev opened this issue Feb 15, 2024 · 0 comments
Open
2 tasks done

馃悰 Bug Report: type Document need support for any property #69

PratikDev opened this issue Feb 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@PratikDev
Copy link

馃憻 Reproduction steps

import { Client, Databases, Users } from "node-appwrite";

const client = new Client();
const databases = new Databases(client);

client
  .setEndpoint(ENDPOINT)
  .setProject(PROJECT_ID)
  .setKey(API_KEY);

const {my_attribute} = databases.getDocument(DB_ID, COLLECTION_ID, DOCUMENT_ID);

In this example, my_attribute shows a TS error saying "Property 'my_attribute' does not exist on type 'Document'"

That's a quickie. I would be happy to help with this

馃憤 Expected behavior

It should adapt to any property I wanna use from the document

馃憥 Actual Behavior

Throws a TS error

馃幉 Appwrite version

Different version (specify in environment)

馃捇 Operating system

Linux

馃П Your Environment

node-appwrite v11.1.0

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

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@PratikDev PratikDev added the bug Something isn't working label Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant