Extending edges (relationship metadata)
Often, we have relationships that contains metadata. This is particulary the case for N:M relationships, where the join table might contain data our graphql client might want.
AutoRelay offers a simple API to extend the returned Edges
with information contained in a join table.
Let's say we want EntityB to be queryable with Relay arguments from EntityA. Our code would simply become :
This would result in the following working SDL:
Last updated
Was this helpful?