Skip to content

Custom object relations: writes succeed but reads return null #23780

Description

@daniel-ospina

Bug Description

Created a custom object "Investor Lead" with a relation field "fund" (→ Companies). The GraphQL create/update mutations DO NOT expose the relation field for writes. The investorPipelineId field exists on the Company update mutation (reverse relation) and calls succeed, but reading back the fund field on the Investor Lead returns null.

To Reproduce

  1. Create custom object "Investor Lead" with a relation field to Companies
  2. Try to create or update an Investor Lead with fundId - field doesn't exist on mutation input
  3. Try updateCompany(investorPipelineId: lead.id) - succeeds
  4. Query investorLead.fund - returns null

Expected

Relation fields on custom objects should be writable via create/update mutations, just like personId/person work on the same object.

Environment

  • Twenty version: 2.25.x (Docker, latest)
  • API: GraphQL + MCP

Impact

Cannot programmatically link custom object records to related objects. Makes API-driven workflows impossible for custom objects.

Metadata

Metadata

Assignees

Labels

Type

Fields

Priority

None yet

Dev status

None yet

Start date

None yet

Target date

None yet

Quarter

None yet

Projects

Status
In project

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions