fix: support hasMany: true relationships in findDistinct (#13840)

Previously, the `findDistinct` operation didn't work correctly for
relationships with `hasMany: true`. This PR fixes it.
This commit is contained in:
Sasha
2025-09-17 18:21:24 +03:00
committed by GitHub
parent a26d8d9554
commit d0543a463f
6 changed files with 139 additions and 21 deletions

View File

@@ -126,6 +126,12 @@ export const getConfig: () => Partial<Config> = () => ({
relationTo: 'categories',
name: 'category',
},
{
type: 'relationship',
relationTo: 'categories',
hasMany: true,
name: 'categories',
},
{
type: 'relationship',
relationTo: 'categories-custom-id',