feat: join field works with hasMany relationships (#8493)

Join field works on relationships and uploads having `hasMany: true`

---------

Co-authored-by: Sasha <64744993+r1tsuu@users.noreply.github.com>
This commit is contained in:
Dan Ribbens
2024-10-08 11:40:34 -04:00
committed by GitHub
parent ca779441a3
commit 1bf580fac3
18 changed files with 275 additions and 40 deletions

View File

@@ -49,6 +49,12 @@ export const Categories: CollectionConfig = {
collection: postsSlug,
on: 'category',
},
{
name: 'hasManyPosts',
type: 'join',
collection: postsSlug,
on: 'categories',
},
{
name: 'group',
type: 'group',