9 Advanced GraphQL considerations

This chapter covers

  • Using abstract types of unions and interfaces for their benefits
  • Paginating query results, using offsets and cursors
  • Working with relationship properties, using Relay connection types

So far, we haven’t leveraged one of the most powerful and important features of GraphQL’s type system—abstract types—which allow us to represent multiple concrete types in a single GraphQL field. Similarly, we also haven’t really made use of an important feature of the property graph model—relationship properties—which allow us to associate attributes with the relationships that connect nodes rather than just nodes themselves. In this chapter, we will see how to leverage the abstract union and ...

Get Full Stack GraphQL Applications now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.