prisma1 icon indicating copy to clipboard operation
prisma1 copied to clipboard

Deeper nested mutations

Open danmkent opened this issue 9 years ago • 7 comments

I have a use case for nesting create mutations one level deeper than the current limit of 3 levels down from the outer mutation.

It would be great if I could do a single mutation to create my hierarchy rather than having to split the operation across multiple mutations.

danmkent avatar Jul 17 '17 13:07 danmkent

Do you think 4 levels would be enough for all your use cases?

sorenbs avatar Jul 20 '17 13:07 sorenbs

The extra level would cover my current use cases and I don't anticipate adding any more.

danmkent avatar Jul 20 '17 15:07 danmkent

I've seen cases where 5 or 6 levels were needed, as well 🙂

marktani avatar Jul 20 '17 15:07 marktani

🙈

sorenbs avatar Jul 20 '17 15:07 sorenbs

Performance wise it would be better to enable uploading a nested json instead?

JensMadsen avatar Sep 04 '17 18:09 JensMadsen

@danmkent We now support 4 levels of nesting :-)

sorenbs avatar Sep 05 '17 07:09 sorenbs

Awesome - thanks for that. I will be able to refactor some messy code now!

danmkent avatar Sep 05 '17 09:09 danmkent