-
-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fields issue on preload entity #89
Comments
Could you paste the JSON documents you request, please? |
Hi @dunglas I tried more since my last post, it seems to work if Fields header match between author et greetings, what i mean, if for my get of authors/1 i've this:
I see this with query parameters example, so i thinks i should reporter "/hydra:member/*/author/@id" to /@id when i fetch him. Isn't it? So, why not, it works! However, I don't know how to make work with a new level after (in my exemple, authors have comments)
Good fields are displayed I saw this syntax in your demo symfo repo:
I don't understand this syntax with the @id before sessions, but when i tried, all my next calls are push but without fields.... Do you have a full example somewhere with multi level and fields headers? Thanks |
Hi @dunglas , Just, do you know if is it possible to combine Fields and Preload to a nested level of relationship with current version of Vulcain?! Or i miss something that i misunderstand
My greetings collection:
My author (pushed)
My comment (not push but good fields)
Thanks for your time. BenWa |
Hi!
I'm playing with Vulcain but i'm facing to an issue...
I've 2 entities in an Api Platform project (greeting and author, author have many greetings, for relationship)
If i fetch greetings endpoint:
Of course authors/1 exists and it linked to all my greetings for more simplicity.
So... In this case, with fields contains "/hydra:member/*/authors/@id" (it the same with firstname or anyother property) push doesn't work
But if instead "/hydra:member/*/authors/@id", i've "/hydra:member/*/authors" (without /@id) push works (but i get full object after, of course)
What am i missing....? Documentation seems clear about, i think this should work...
The text was updated successfully, but these errors were encountered: