One-to-one relations
It's possible to create one-to-one relations in schema. Those relations will be then available for querying via GraphQL.
Define relations in schema
To define one-to-one relation nested entity must have id
field that is either String!
or ID!
. In parent entity create field (with any name) that is of nested entity's type (can be nullable or required).
Create entities in writer
When creating entities in writer set Proposal
's space
field to the value of Space
's id
field.
Query data via GraphQL
It's now possible to nest space entity when querying proposals. You can still filter proposals by space (limited to Space
's id
currently).
Last updated