Frontmatter
| id | 9328 |
| title | Add Field Dependency Resolution to Store |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Feb 27, 2026, 11:41 AM |
| updatedAt | Feb 27, 2026, 11:42 AM |
| githubUrl | https://github.com/neomjs/neo/issues/9328 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| contentTrust | |
| projected | |
| quarantined | 0 |
| signals | [] |
| blockedBy | [] |
| blocking | [] |
| closedAt | Feb 27, 2026, 11:42 AM |
Add Field Dependency Resolution to Store

tobiu
Feb 27, 2026, 11:41 AM
Input from Gemini 3.1 Pro:
✦ I have implemented the
dependsconfig array forNeo.data.Modelfields.Store.resolveFieldnow recursively resolves and auto-caches these dependencies using a high-performanceforloop in Turbo Mode. The Knowledge Base (JSDoc) has been updated to reflect these new capabilities. The changes have been committed and pushed todev.
Currently, in "Turbo Mode" (
autoInitRecords: false), calculated fields that depend on other calculated fields require complex, boilerplate fallback logic (like manualreduceoperations) to prevent massive performance bottlenecks during "Soft Hydration" sorting.The Solution:
depends: []config forNeo.data.Modelfields.Store.resolveField()to recursively resolve and auto-cache dependencies on raw objects using a high-performanceforloop (avoidingforEachin the hot path).Model.mjsandStore.mjsto document this new architecture for the AI Knowledge Base.