Category: apollo-client

Create nested doctine objects with one GraphQl query with API Platform

I have a basic Entity in my symfony application: /** * @ApiResource() * @ORMEntity(repositoryClass=CardRepository::class) */ class Card { /** * @ORMId() * @ORMGeneratedValue() * @ORMColumn(type=”integer”) */ private $id; /** * @ORMOneToMany(targetEntity=CardReference::class, mappedBy=”card”, orphanRemoval=true) */ private $cardReferences; /** * @ORMColumn(type=”string”, length=255,…