fix(ui): executes filterOptions on the server (#5335)
This commit is contained in:
@@ -21,6 +21,17 @@ export const PostsCollection: CollectionConfig = {
|
||||
{
|
||||
name: 'relationship',
|
||||
type: 'relationship',
|
||||
filterOptions: ({ id }) => {
|
||||
return {
|
||||
where: [
|
||||
{
|
||||
id: {
|
||||
not_equals: id,
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
relationTo: ['posts'],
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user