X
Xata4mo ago
JFurn

Queries in the dashboard issue

Hi, I've been running some queries on the dashboard, but there are errors parsing nested relationships. It looks like this is an issue with the ReactJson component being used in the front-end. The error displayed is "Failed to parse link for field"
No description
4 Replies
tsg
tsg4mo ago
Hi, could you share the query, please?
JFurn
JFurnOP4mo ago
Sure thing it is:
const merchants = await xata.db.merchant.select(['impact_site.slug']).getAll();
const merchants = await xata.db.merchant.select(['impact_site.slug']).getAll();
tsg
tsg4mo ago
And the slug is a link to another table? Could you post a screenshot of your schema? nevermind, I can reproduce it, thanks for the report! the issue is that we have switch to defaulting to a tabular format, and that doesn't support links yet. We'll be fixing that soon. This is just an UI issue, calling it from code should work fine.
JFurn
JFurnOP4mo ago
Ok perfect thanks. Sorry for slow response didn't see this
Want results from more Discord servers?
Add your server