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: Attribute named "collection", storing any data as undefined #6944

Open
2 tasks done
SMARTMICROWORLD opened this issue Oct 18, 2023 · 3 comments
Open
2 tasks done
Labels
bug Something isn't working product / databases Fixes and upgrades for the Appwrite Database.

Comments

@SMARTMICROWORLD
Copy link

馃憻 Reproduction steps

When you create an attribute named 'collection' in any collection and store any data it will save it as undefined.

馃憤 Expected behavior

It should store provided data.

馃憥 Actual Behavior

It is storing any data as undefined.

馃幉 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?

@SMARTMICROWORLD SMARTMICROWORLD added the bug Something isn't working label Oct 18, 2023
@shashankdaima
Copy link

I think i can take this issue. Please assign this to me.

@Haimantika Haimantika changed the title 馃悰 Bug Report: LOL, What a smallest/biggest issue馃槀 馃悰 Bug Report: Attribute named "collection", storing any data as undefined Oct 18, 2023
@Haimantika
Copy link
Contributor

Hi @SMARTMICROWORLD I am guessing the name needs to be unique and cannot be collection. I will check with the team and get back to you

@stnguyen90 stnguyen90 added product / databases Fixes and upgrades for the Appwrite Database. product / cloud Issues found only on Appwrite Cloud labels Oct 18, 2023
@stnguyen90
Copy link
Contributor

@SMARTMICROWORLD, thanks for creating this issue! 馃檹馃徏 It looks like the data is not being returned for some reason...the listDocuments() returns:

{
    "total": 1,
    "documents": [
        {
            "$id": "652ff44c55dcf12c1f40",
            "$createdAt": "2023-10-18T15:05:48.351+00:00",
            "$updatedAt": "2023-10-18T15:05:48.351+00:00",
            "$permissions": [],
            "$databaseId": "default",
            "$collectionId": "test"
        }
    ]
}

but getDocument() returns it 馃 :

{
    "collection": "asdfasf",
    "$id": "652ff44c55dcf12c1f40",
    "$createdAt": "2023-10-18T15:05:48.351+00:00",
    "$updatedAt": "2023-10-18T15:05:48.351+00:00",
    "$permissions": [],
    "$databaseId": "default",
    "$collectionId": "test"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working product / databases Fixes and upgrades for the Appwrite Database.
Projects
None yet
Development

No branches or pull requests

4 participants