forestcitylabs / framework

A PSR compliant framework for building web applications.
https://forestcitylabs.github.io/
GNU General Public License v3.0
0 stars 0 forks source link

[GraphQL] Embedded Entities in Inputs #57

Open midnightLuke opened 3 months ago

midnightLuke commented 3 months ago

When creating an entity using the automatic input resolver you may wish to add embedded entities as well. There are two scenarios here:

  1. Create a new entity.
  2. Reference an existing entity.

The first is easier since it just involves creating the entity, the second is less so because it would require a resolver that looks up the entity by id.