Open
Description
Link to reproduction
https://github.com/payloadcms/website
Describe the Bug
When applying a filter to a relationship field in Payload CMS, the query is processed incorrectly, causing a syntax error in PostgreSQL.
Error message:
invalid input syntax for type integer: "{"2","2"}"
To Reproduce
Steps to reproduce the behavior:
- Install Payload CMS demo using:
npx create-payload-app@latest my-app
- Select
demo
during setup and run the seed without modifications. - Configure the project to use PostgreSQL as the database.
- Go to the Payload Web admin panel.
- Navigate to the "Posts" collection.
- Apply a filter on a relationship field.
Screen.Recording.2025-03-09.at.3.38.59.PM.mov
.
Payload Version
3.27.0
Adapters and Plugins
No response