GithubHelp home page GithubHelp logo

Comments (8)

uesteibar avatar uesteibar commented on May 21, 2024 2

@schickling that's awesome, thanks!! So looking forward to try it out 😸

from prisma1.

uesteibar avatar uesteibar commented on May 21, 2024

+1 to this, currently managing many-to-many relationships is kinda hard...

great job otherwise! Love the platform :)

from prisma1.

uesteibar avatar uesteibar commented on May 21, 2024

Actually, I'd try to make it a bit simpler and just support something like

mutation {
  createItem(title: "whatever", authorIds: ["author-id-1", "author-id-2"])
}

I think that would be pretty straight forward. What do you think @schickling ?

from prisma1.

schickling avatar schickling commented on May 21, 2024

Great news @uesteibar, we're currently implementing this functionality and should be rolling it out over the next couple of days. Excited to hear your feedback on it.

About your API suggestion: Yes, it will be possible to support both an array of IDs or an array of actually nested nodes. (You can even combine both if needed.)

from prisma1.

uesteibar avatar uesteibar commented on May 21, 2024

@schickling did this happen? haven't got any notification and can't find it in the docs 😿

from prisma1.

marktani avatar marktani commented on May 21, 2024

It's not updated in the docs yet because there are some problematic edge cases. However this is already available in the API, you can already declare both multiple nested ids and objects at the same time :)

from prisma1.

marktani avatar marktani commented on May 21, 2024

@uesteibar after further testing this should now be ready! If you experience a problem with lists and nested mutations, please create an issue at https://github.com/graphcool/console/issues.

from prisma1.

uesteibar avatar uesteibar commented on May 21, 2024

@marktani awesome! I'll give it a try and give you some feedback, thanks!

from prisma1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.