4

Building Pipes

One of the key challenges in building scalable and secure GraphQL APIs is ensuring that the right level of access control is implemented. By incorporating authentication information into our schemas, we can ensure that only authorized users have access to specific parts of our data graph. This not only enhances the security of our applications but also provides a seamless and intuitive experience for schema consumers, understanding what parts of schema are accessible by which kind of consumer.

In this chapter, we will dive into the concept of pipes and connections, which serve as a powerful tool for defining relationships between various components of our schema.

Pipes allow us to connect different parts of our schema, enabling ...

Get GraphQL Best Practices 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.