-
-
Notifications
You must be signed in to change notification settings - Fork 202
feat: Add get() method to Neo.data.Record #8994
Copy link
Copy link
Closed
Labels
aicoreCore framework functionalityCore framework functionalitydeveloper-experienceThis improves the ease and fun of developing apps with neo.This improves the ease and fun of developing apps with neo.enhancementNew feature or requestNew feature or request
Description
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:
- Return the property value if the field is defined in the Model.
- Fallback to
Neo.nslookup on the raw data object for unmodeled nested paths.
This change requires updating src/data/RecordFactory.mjs and refactoring src/grid/Row.mjs.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
aicoreCore framework functionalityCore framework functionalitydeveloper-experienceThis improves the ease and fun of developing apps with neo.This improves the ease and fun of developing apps with neo.enhancementNew feature or requestNew feature or request