Hi there! We’re having a problem trying to write a mutation.
We have a Message table which has a relationship with MessageThread. We’re trying to CreateMany Messages along with NEW Threads for each of those messages, but it seems that we can only use connect for the MessageThread relation.
In our scenario we want to create the Threads, because each one of our Messages are the first ones in the threads. Is there a way to do this in a single mutation using messageCreateMany? We want to avoid making a query for each Message (you CAN use create for Threads if you’re going the messageCreate route instead of the messageCreateMany one).