Skip to content

"_id" in Object fields is being renamed to "objectId" #1417

Closed
@blacha

Description

@blacha

Check out this issue for an ideal bug report. The closer your issue report is to that one, the more likely we are to be able to help, and the more likely we will be to fix the issue quickly!

For implementation related questions or technical support, please refer to the Stack Overflow and Server Fault communities.

Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!

Environment Setup

Test Schema

{
    "_id" : "Test",
    "objectId" : "string",
    "updatedAt" : "string",
    "createdAt" : "string",
    "data" : "object"
}

Test Data

{
    "_id" : "tqwysmYbjP",
    "data" : {
        "_id": "testObjectKey",
        "arr" : [ {
                "_id" : "testArrayKey",
                "_testKey" : "otherKey"
            }],
        "obj": {
            "_id": "testNestedObjectKey"
        }
    },
    "_updated_at" : ISODate("2016-04-07T04:22:47.653Z"),
    "_created_at" : ISODate("2016-04-07T04:22:47.653Z")
}

When querying this Class the output I receive is:

{
    "results": [{
        "objectId": "tqwysmYbjP",
        "data": {
            "objectId": "testObjectKey",
            "arr": [{
                "objectId": "testArrayKey",
                "_testKey": "otherKey"
            }],
            "obj": {
                "objectId": "testNestedObjectKey"
            }
        },
        "updatedAt": "2016-04-07T04:22:47.653Z",
        "createdAt": "2016-04-07T04:22:47.653Z"
    }]
}

Steps to reproduce

Fetch the Test Class in parse dashboard/curl and look at the results.

Logs/Trace

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions