Data Type Hierarchy

I am working on a writing platform where writers can input chapters in different books and I need to be able to assign book chapters to a specific book.

I have tried creating two data types:

  • “Chapter”: where I gather the chapter information and body
  • “Story”: where I gather the book information

How can I connect both data types for the chapters be assigned and related to their specific book? Do I need only one data type with all the information?

Hi there, @fernandolopez.g… you can more than one way on this one, where you could have a story field on the Chapter data type so you can associate each chapter with a story or you could have a chapter field (list) on the Story data type so you can associate each story with a list of chapters. You could also consider doing both so you can access the associated data in more than one way.

Hope this helps.