graphene-django-cud icon indicating copy to clipboard operation
graphene-django-cud copied to clipboard

Create and update mutations referencing not-yet-created entries

Open tOgg1 opened this issue 4 years ago • 1 comments

One thing that would be nice to have is the possibility to create complex mutations with relations referring to objects that have not yet been created. For instance:

mutation{
    createSomething(input: {
        _id: "ID1", 
        field: "Value",
        someRelation: [{
           anotherField: "value", 
           someNonObviousRelationField: "ID1"
        }] 
   }){
      ...
   }

Clearly, this issue must include a fair bunch of complex logic to ensure all IDs are resolved before usage.

tOgg1 avatar May 22 '20 08:05 tOgg1

This is a larger undertaking and will be postponed for at least one release.

tOgg1 avatar Dec 20 '20 13:12 tOgg1