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 ...