If you're unsure how to proceed with a problem and are not sure if it is a bug, please provide some information so we can help you. You can also use the Apostrophe Discord chat and Github Discussions to ask questions as well.
Question or comment
How to use relationship field to configure columns in a piece to get a similar result like for relationship field in filters ?
case 1 : nothing displayed
columns: { add: { title: { label: 'Title' }, '_directType[0].title' : { label: 'Direct Type' } } }
case 2 : Json displayed instead of the piece title
columns: { add: { title: { label: 'Title' }, '_directType' : { label: 'Direct Type' } } }
Please include as much detail as possible so we can help more quickly.
- What are you trying to do?
use relationship field to configure columns in a piece to get a similar result like for relationship field in filters
- What have you already tried?
case 1 & case 2
- Have you already checked the documentation? A3 documentation | A2 documentation
- Did the docs have a related section but there was not enough information?
Details
Version of Node.js:
PLEASE NOTE: Only stable LTS versions (20.x, 22.x, 24.x as of 2026-02-24) are fully supported but we will do our best with newer versions. Avoid odd-numbered versions, which are not considered stable.
v24.11.1
macbookairt
Server Operating System:
MacOS Tahoe 26.3
The server (which might be your dev laptop) on which Apostrophe is running. Linux? MacOS X? Windows? Is Docker involved?
not
Additional context:
Add any other context about the problem here. If the problem is specific to a browser, OS or mobile device, specify which.
Screenshots
If applicable, add screenshots to help explain your problem.

If you're unsure how to proceed with a problem and are not sure if it is a bug, please provide some information so we can help you. You can also use the Apostrophe Discord chat and Github Discussions to ask questions as well.
Question or comment
How to use relationship field to configure columns in a piece to get a similar result like for relationship field in filters ?
case 1 : nothing displayed
columns: { add: { title: { label: 'Title' }, '_directType[0].title' : { label: 'Direct Type' } } }case 2 : Json displayed instead of the piece title
columns: { add: { title: { label: 'Title' }, '_directType' : { label: 'Direct Type' } } }Please include as much detail as possible so we can help more quickly.
use relationship field to configure columns in a piece to get a similar result like for relationship field in filters
case 1 & case 2
Details
Version of Node.js:
PLEASE NOTE: Only stable LTS versions (20.x, 22.x, 24.x as of 2026-02-24) are fully supported but we will do our best with newer versions. Avoid odd-numbered versions, which are not considered stable.
v24.11.1
macbookairt
Server Operating System:
MacOS Tahoe 26.3
The server (which might be your dev laptop) on which Apostrophe is running. Linux? MacOS X? Windows? Is Docker involved?
not
Additional context:
Screenshots
If applicable, add screenshots to help explain your problem.