How to create or connect multiple records in prisma?

I have a model Post that has many-to-many relationship with Tag model.
I want to connect a tag if it exists, else create a tag.
image.png
Was this page helpful?