Skip to content

Add support for inheritable arrays#15

Merged
tobiemh merged 5 commits intomainfrom
tobiemh/inheritable-arrays
Feb 14, 2026
Merged

Add support for inheritable arrays#15
tobiemh merged 5 commits intomainfrom
tobiemh/inheritable-arrays

Conversation

@tobiemh
Copy link
Copy Markdown
Member

@tobiemh tobiemh commented Feb 14, 2026

Summary

  • Add InheritableArray support so .return() callbacks can return arrays (e.g., [r.name, r.age]) in addition to the existing single-field and object patterns, with full type inference and correct SurrealQL rendering
  • Fix mutation query return projections: callback-based .return() on CREATE, UPDATE, DELETE, UPSERT, INSERT, and RELATE now correctly uses RETURN VALUE <expr> (instead of RETURN <expr>) and updates the runtime type to match the projection, so parse() validates against the projected shape rather than the full table schema
  • Add comprehensive test coverage for all return projection patterns across all query types

@tobiemh tobiemh merged commit 598bc68 into main Feb 14, 2026
11 checks passed
@tobiemh tobiemh deleted the tobiemh/inheritable-arrays branch February 14, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant