json-api / explorer

A web-based app for exploring any JSON:API server.

Home Page:https://explore.jsonapi.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Includes not displayed in summary

wimleers opened this issue Β· comments

First of all: fantastic work! πŸ₯³πŸ‘πŸ€©

I built a query that uses a sparse fieldset and includes. This works great. But the summary only shows the 3 articles, not the included authors, even though those are present in the raw response.

See at: https://explore.jsonapi.dev/?location=https%3A%2F%2Fexample.jsonapi.dev%2Fjsonapi%2Fnode%2Farticle%3Finclude%3Duid%26filter%5Bstatus%5D%3D1%26fields%5Bnode--article%5D%3Dtitle

P.S.: It's awesome I can just share a URL to allow you to reproduce a bug!

Oh and in doing that, I realized that I cannot select uid in the sparse fieldset, which is necessary to be able to relate included authors (uid) to articles.

@wimleers if you undo your sparse fieldset, look at the uid field row for the "∈" character. Click it. This will update the summary go "down" the relationship. You'll then see the include. There's a button to go "up" which will show you the referencing field.

The "∈" link is really non-descript, I'm not surprised that you missed it. It was just a placeholder until we could get more design direction.

===

All that said, that won't work if you do not have the relationship in the sparse fieldset, which is the second issue you brought up. Without it, you can't go "down" a level. I think that's the primary bug that needs to be resolved in this issue. I updates the issue title accordingly.

Hm … if I don’t see the uid row, how can I see ∈? I wonder what I'm missing :) Using Chrome, by the way.

All that said, that won't work if you do not have the relationship in the sparse fieldset, which is the second issue you brought up.

You have to completely remove the sparse fieldset to see the uid row.