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

Modification of collections of linked objects. #105

Open
tmarzec opened this issue Sep 8, 2022 · 0 comments
Open

Modification of collections of linked objects. #105

tmarzec opened this issue Sep 8, 2022 · 0 comments
Labels
bug Something isn't working O-Community

Comments

@tmarzec
Copy link
Contributor

tmarzec commented Sep 8, 2022

Because inner objects don't have their objectKeys assigned, any update on a non-empty collection of objects sends over back an inner object, which cannot be then found in the database.

Reproduction

Consider schemas:

{
    name: 'apple',
    properties: {
        name: 'string'
    }
}
{
    name: 'basket',
    properties: {
        content: 'apple[]'
    }
}

Lets say that we have two apples, a and b, and let basket c be:

{
    content: [a]
}

If we now add b to c.content from the UI, then an error will happen on the device.

Solution

Ideally, this would be fixed after resolving #85 and #84, when proper object flattening and type conversions are in place.

@tmarzec tmarzec added the bug Something isn't working label Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working O-Community
Projects
None yet
Development

No branches or pull requests

1 participant