The new Cosmic dashboard is here!
Test drive it now →

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


In this short walk-through, I show you how to add localization to your Cosmic Object Types.
A website boilerplate satisfies some common website requirements including dynamic pages, blog articles, author management, SEO ability, contact form and website search.
This is a JAMstack app with the power of Cosmic. In JAmstack, Vue.js is used as Javascript part, Cosmic as API and Nuxt.js as Markup.
This time, we will add filtering functionality to showcase the Cosmic Advanced Queries feature. Our data will be stored and served by Cosmic and we will use Angular for our Front-End.
The Cosmic team was honored to to speak at Toyota Connected for the Ember.js Dallas Meetup this week. Cosmic co-founder Tony Spiro presented "Building Modern Apps with API Services" to illustrate the growing trend of offloading core dev tasks onto best-in-class API services.

Get started with Cosmic

Personal projects are free. Scale up as you grow.
Start building Talk to sales