© Thomas Frisendal 2018
Thomas FrisendalVisual Design of GraphQL Datahttps://doi.org/10.1007/978-1-4842-3904-9_8

8. Getting the Structure Right

Thomas Frisendal1 
(1)
Copenhagen S, Denmark
 

Which Objects and Which Relationships?

The structure of the data model is, of course, built on the object types and the relationships, which we have already discussed.

But more general issues arise from picking the right objects.

We do have some generally applicable tools in our tool belt, as follows:
  • Abstraction, generalization, and specialization (aka aggregation)

  • Classification and typing

  • Lifecycle dependencies and versioning

  • Recognizing hierarchies

There are also some problem areas to be aware of:
  • One-to-one relationships

  • Many-to-many relationships and nested object types ...

Get Visual Design of GraphQL Data: A Practical Introduction with Legacy Data and Neo4j now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.