Next.js Discord

Discord Forum

I need a bit of help with my Supabase query not fetching the translations

Unanswered
Sun bear posted this in #help-forum
Open in Discord
Sun bearOP
I'm trying to fetch skill data for a user, including translations, but the skill_translations array is always empty in the query results. The translations exist in the database, but they're not being included in the query output.

## Database Structure:
//removed


## Expected Result:
The skill_translations array should contain the translations for each skill.

## Actual Result:
The skill_translations array is empty for all skills.

## Question:
Why aren't the skill translations being included in the query results, and how can I modify my query to fetch them correctly?

Any help or insights would be greatly appreciated!

Full code: https://0bin.net/paste/JgnOgyOq#duTeEpparLmQExK8hbgqvJIqOPK28AIoD-qO9POfLIC

0 Replies