fix(ui): executes filterOptions on the server (#5335)

This commit is contained in:
Jacob Fletcher
2024-03-14 16:53:24 -04:00
committed by GitHub
parent bff83f1785
commit f85e96acac
21 changed files with 112 additions and 151 deletions

View File

@@ -21,6 +21,17 @@ export const PostsCollection: CollectionConfig = {
{
name: 'relationship',
type: 'relationship',
filterOptions: ({ id }) => {
return {
where: [
{
id: {
not_equals: id,
},
},
],
}
},
relationTo: ['posts'],
},
{