Yep, that's the right way of doing it. The reasoning for this is one of design. Our API is designed to provide access to
things rather than
functionality. Adding something to a collection is therefore done by creating a
thing that represents the relationship rather than exposing the functionality in other ways.
-David Underwood
Developer Advocate, Shopify