payloadcms / payloadcms/payload

Join Field doesn't work with multiple collections?

Open
#12,913 12 comments 5 reactions 2 assignees View on GitHub

@r1tsuu is already working on this.

Since Jun 30, 2025.

Dominant language
TypeScript
Stars
44.8k
Forks
4.2k
Avg merge
2d 21h
Merged PRs (30d)
53

Description

Describe the Bug

When a join field is given a array of collections it does not show anything anymore.

Image

Link to the code that reproduces this issue

https://github.com/MartijnDeRoode/payload/tree/bug/join-array/test/_community

Reproduction Steps
  1. Grab the rpo
  2. pnpm dev _community
  3. Navigate to Tags collection
  4. See the join field empty.
Which area(s) are affected? (Select all that apply)

area: core, area: ui

Environment Info
Binaries:
  Node: 22.3.0
  npm: N/A
  Yarn: N/A
  pnpm: 9.7.0
Relevant Packages:
  payload: 3.43.0
  next: 15.3.0
  @payloadcms/db-mongodb: 3.43.0
  @payloadcms/email-nodemailer: 3.43.0
  @payloadcms/graphql: 3.43.0
  @payloadcms/next/utilities: 3.43.0
  @payloadcms/payload-cloud: 3.43.0
  @payloadcms/richtext-lexical: 3.43.0
  @payloadcms/translations: 3.43.0
  @payloadcms/ui/shared: 3.43.0
  react: 19.1.0
  react-dom: 19.1.0
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Home
  Available memory (MB): 65375
  Available CPU cores: 24

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.