Skip to content

Implement type union/intersection for nested references #7139

@shans

Description

@shans

(from b/156983624)

schema intersection has been implemented so that reference fields will be dropped unless their contained types match exactly.

Probably this should be implemented by instead performing an intersection of their contained types.

e.g. Foo { ref: &Person { name, age } } intersect Foo { ref: &Person { name, height } } should result in Foo { ref: &Person { name } }

TS impl at https://github.com/PolymerLabs/arcs/blob/master/src/runtime/schema.ts#L158

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions