Payload CMS: Getting Started Using the New Join Field

Payload CMS has just rolled out an exciting feature that takes content relationships to a whole new level—the Join field. This new field type allows you to link data seamlessly, making it easier to organize and retrieve related content.
In this guide, we'll walk you through how to set up and use the Join field in Payload CMS, allowing you to create more flexible two-way content queries.
In this article, I'll be covering:
- What is the new Join field?
- How it can improve content management.
- How to use it in a realistic example.
- When to use the Join field.
- Querying Join fields with REST and GraphQL
Let’s dive in to see how this simple yet powerful feature can enhance your content relationships!
What is the Payload CMS Join field?
The Join fields is a new field type provided since Payload 3.0 and can be used to create bi-directional Collection relationships.
The following Collection relationship fields are available:
- relationship
- join
Using the join field type will allow for two-way query support on an adjoining Collection.
How does the Join field improve content management?
The relationship field is probably all you'll need in most cases, since queries can be written using where conditions on the related Collection.
For example, if we have a Posts Collection with a relationship to a Categories Collection, there is only a one-way query relationship.

However, when a join field is added on the Categories Collection, it creates a two-way query relationship.







