LearnNewsExamplesServices
Frontmatter
id3151
titledata.Model: fields => mapping property
stateClosed
labels
enhancement
assigneestobiu
createdAtJun 13, 2022, 11:40 AM
updatedAtJun 13, 2022, 11:59 AM
githubUrlhttps://github.com/neomjs/neo/issues/3151
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJun 13, 2022, 11:59 AM

data.Model: fields => mapping property

Closed v8.1.0 enhancement
tobiu
tobiu commented on Jun 13, 2022, 11:40 AM

it would be nice to map nested API values to top level model fields.

example:

{
    name   : 'id',
    mapping: 'foo.bar.baz.id'
}

to get this working, we will need to adjust data.RecordFactory.

tobiu added the enhancement label on Jun 13, 2022, 11:40 AM
tobiu assigned to @tobiu on Jun 13, 2022, 11:40 AM
tobiu referenced in commit c20c038 - "data.Model: fields => mapping property #3151" on Jun 13, 2022, 11:48 AM
tobiu closed this issue on Jun 13, 2022, 11:49 AM
tobiu reopened this issue on Jun 13, 2022, 11:58 AM
tobiu referenced in commit d65bb39 - "data.Model: fields => mapping property #3151 hotfix" on Jun 13, 2022, 11:59 AM
tobiu closed this issue on Jun 13, 2022, 11:59 AM