Associations
Associations determine what sort of resources you can relate. Based on the relationship you setup, your resources will have the ability to associate with one another. You can create associations within the app's sidebar menu. Once you've created an association, you can relate these resources together by clicking "Edit Relatable" from within the Shopify admin app dropdown menu. There are two types of associations:
One to Many
Best used when you want to maintain a structured order that cascades from parents to children. For example, you could setup a multi-level collection tree that provides a nested collection list.Example:- collection.collections
- collection.collection
Many to Many
Useful when you have two resources the have many of each other. An example of this is have multiple products related to multiple other articles (and vice-versa).Example:- product.articles
- article.products