Skip to content

feat: Add get() method to Neo.data.Record #8994

@tobiu

Description

@tobiu

To improve Developer Experience (DX) and simplify access to nested data fields, we should add a get(field) method to Neo.data.Record.

Currently, accessing unmodeled nested data requires manual parsing or Neo.ns usage, as seen in src/grid/Row.mjs.

The get() method will:

  1. Return the property value if the field is defined in the Model.
  2. Fallback to Neo.ns lookup on the raw data object for unmodeled nested paths.

This change requires updating src/data/RecordFactory.mjs and refactoring src/grid/Row.mjs.

Metadata

Metadata

Assignees

Labels

aicoreCore framework functionalitydeveloper-experienceThis improves the ease and fun of developing apps with neo.enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions