Viewing Related Data for one table

This is a template you can use to report issues. You can also drag images, videos and include Preformatted text

Expected behavior

Hey there folks,
At the moment, I have a one-to-one relationship between two tables - lessons and slides.
Lessons contains a foreign key slide_id that references the primary key id in the slides table.
My Lessons model currently looks likes this:


And the Slides model:
image

Actual behavior

But when I view the related data section in the UI, I can’t see the slides in the related data tab:

What is the current behavior?

Failure Logs

Nothing seems to be failing at the moment

Context

Please provide any relevant information about your setup.

“express”: “^4.17.1”,
“forest-express-sequelize”: “^7.3.1”,
“sequelize”: “~5.15.1”,

Hi @Mitchell_Lloyd,

If lessons belongs to slides, it is not a “one to many” relationship.
As a consequence it is not displayed in Forest Admin in the “related data” section of a lesson record

If you want to find the reference to the single slide the lesson is attached to, you can find the relationship in the details page displayed as a field with a value that links to the associated slide.

I hope it helps.