T
Twenty3mo ago
tombro

"field 'companyId' does not exist in 'person' object"

I'm currently checking out twenty to see if it would fit my needs. I need to import/export some data over the rest API. When filtering objects, I can't seem to find a way to filter by relationship. http://localhost:3000/rest/people?filter=companyId[eq]:59496649-ce24-43c0-80e6-e06a3d4119e2 Results in
{
"statusCode": 400,
"error": "BadRequestException",
"messages": [
"field 'companyId' does not exist in 'person' object"
]
}
{
"statusCode": 400,
"error": "BadRequestException",
"messages": [
"field 'companyId' does not exist in 'person' object"
]
}
This issue seems to be related, but I get this message even without a second relation to the company object. https://github.com/twentyhq/twenty/issues/12526 Self hosted (docker), v1.0.2
GitHub
REST API - Cannot filter using a relation if they are 2 fields poin...
Bug Description Discord thread here We were waiting for the release today but this did not solve the pb despite the PRs on relations. I was able to reproduce on their workspace and ours. Assume we ...
5 Replies
Prastoin
Prastoin3mo ago
Hey @tombro, this has been fixed in https://github.com/twentyhq/twenty/pull/12929
GitHub
Fix REST API filters by prastoin · Pull Request #12929 · twentyhq...
Introduction close #12921 Done here: Removed check-order-by.utils.ts that was a duplicated new debug entry twenty-server entrypoint fixed the fields name computation in case of a relation field me...
Prastoin
Prastoin3mo ago
About to create a v1.0.3 and only publish on docker for you, containing the fix
tombro
tombroOP3mo ago
Thanks for looking that up for me. I didn't find that issue and PR
tombro
tombroOP3mo ago
I can confirm that this fixes my issue

Did you find this page helpful?