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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: Query Select has issue when selecting only attributes it seems that Document.fromMap model has limitation on handling internal attributes #7235

Closed
2 tasks done
moshOntong-IT opened this issue Dec 3, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@moshOntong-IT
Copy link

👟 Reproduction steps

 final consultationList =
        await ref.read(consultationRepoProvider).getConsultationList(
      queries: [
        Query.select([
          r'$id',
          'orgRef',
          'clinicRef',
          'startDate',
          'endDate',
          'startTime',
          'endTime'
        ])
      ],
    );

These are the attributes I want to get. However there is an unhandled exception called Null is not a subtype of type List. When I debugging my flutter, it actually fetch the data:

image

Below is the information of error:

image

Below is the screen recorded

20231203_211900.mp4

👍 Expected behavior

The Document.fromMap must handle the result of using Query.select

👎 Actual Behavior

Throwing an error I think it is relates on internal attributes

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

Linux

🧱 Your Environment

No response

👀 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?

@moshOntong-IT moshOntong-IT added the bug Something isn't working label Dec 3, 2023
@moshOntong-IT
Copy link
Author

I fix the problem to add all the internal attributes. I thought that the QUery.select must includes internal attributes as default

@moshOntong-IT
Copy link
Author

image

@stnguyen90
Copy link
Contributor

@moshOntong-IT, thanks for creating this issue! 🙏🏼 Looks like this is a duplicate of #6158 so I'm going to close this.

I thought that the QUery.select must includes internal attributes as default

There was a request to not return system attributes.

@stnguyen90 stnguyen90 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 11, 2023
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

2 participants