Login  Register

How to Query with refresh including relations

Posted by Esteban A. Maringolo on Nov 09, 2020; 12:26am
URL: https://forum.world.st/How-to-Query-with-refresh-including-relations-tp5124522.html

Hi,

I have a simple object Tournament that has a ToMany relation with TournamentCategory, I want to be able to force the refresh of the Tournament and also the TournamentCategories.

If I do `alsoFetch: [:e | e categories]` it brings a _single_ category in the categories selection.

And it is not that I want to refresh each category, I want to refresh the whole list, since it might have changed since it was read (new/removed elements).

Is it possible? How do you do that?

Regards!

Esteban A. Maringolo

--
You received this message because you are subscribed to the Google Groups "glorp-group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/glorp-group/CAJMgPCJPRAXc3FV6F%3DOPTQ97Q6U0B2FogRByoJRWFw27tK9HMw%40mail.gmail.com.