Skip to content

Instantly share code, notes, and snippets.

View dthyresson's full-sized avatar

David Thyresson dthyresson

View GitHub Profile
@dthyresson
dthyresson / many-many-writes-primsa-jwjs.md
Last active December 30, 2020 05:47
Many to Many Nested Writes in Prisma and RedwoodJS

This gist is in response to a RedwoodJS Discord question from Andrew (HH):

How do I create a worker with many skills?

Andrew (HH)12/11/2020

export const createWorker = ({ input }) => {
  return db.worker.create({
    data: {