I'm trying to understand how to recognize the diff...
# prisma-whats-new
d
I'm trying to understand how to recognize the difference between
many-to-many
versus
one-to-many
relations in schemas. According to the site's description (linked below), the first code snippet is a
many-to-many
relation while the second snippet is
one-to-many
. https://www.graph.cool/docs/faq/graphql-meta-information-for-relations-shu9xee3ou/#modeling-the-interaction-of-nodes-using-relations
h
@dk0r Did this get answered for you?
It's all about the playment of the square brackets [ ]. Subscriber has a relation of [Subscriptions] (many) but Subscriptions has a relation to Subscriber (one)
So it's one to many
d
yep, all squared away --thanks horvay