How to Create One-to-Many Object Relationships with Cosmic

Community Articles
Community Articles How to Create One-to-Many Object Relationships with Cosmic

The Multiple Object Relationship Metafield allows you to connect multiple Objects to an Object.  This enables you to create a one-to-many relationship in addition to the one-to-one relationship available with the Single Object Relationship Metafield. Add, edit and remove your connected Objects easily and reorder them with a simple drag and drop.

Use Case Example

This is a good solution for creating an Object Type like a Blog Post that will always need to have relationships with Objects such as an author, a tag, a teaser and so on. 



Build One-to-Many Object Relationships with Cosmic

Extend your Cosmic Objects with Metafields. You can choose to create single Object relationships or multiple Object relationships by simply following the prompts within the Metafield Modal. 



I hope that you've found this tutorial helpful. If you have questions or comments about Content Editor Features in the Cosmic system, I'd love to hear about them. 

carson@cosmicjs.com 

You may also like


This article will demonstrate how to build a simple ecommerce website with the purpose of showing how we can offer a customized experience for everyone. Our data will be stored and served by Cosmic and we will use Angular for our Front-End.
A primary benefit of managing content API-first is that your content is transformed into portable and scalable content objects, available via API endpoint to create workflows with the third-party applications that your team uses.
Here I am going to explain the complete process to implement an Angular 6 blog, which uses Cosmic as back-end.
In this article I’m going demonstrate how to add new form submissions to Hubspot when you Publish Objects in your Cosmic Bucket.
In this article I’m going demonstrate how to publish new Objects containing survey responses in Cosmic as they are completed in Typeform. Click here to connect Typeform to Cosmic using Zapier.
E-commerce app built with Gatsby JS and Cosmic app. Here Cosmic is used as a database as well as a server.

Get Started with Cosmic

Build personal projects for free. Add your team at unbeatable prices.
Start Building Talk to Sales