lapis icon indicating copy to clipboard operation
lapis copied to clipboard

fetch relation preload documentation unclear

Open giann opened this issue 5 years ago • 3 comments

Here's the paragraph

fetch relations can also provide a preloader to allow for the data to be loaded over an array of objects. The preloader function recieves as arguments: the array table of objects to preload, the current mode, the name of the relation.

  • After trying it out: the third argument seems to be the model class and the fourth the name of the relation
  • What's the current mode?

giann avatar Apr 11 '19 11:04 giann

current mode should be current model

leafo avatar Apr 12 '19 15:04 leafo

I updated the docs a bit, tell me if that helps at all

leafo avatar Apr 12 '19 15:04 leafo

It’s better yes 👍 Maybe add the parameters in the snippets?

giann avatar Apr 12 '19 17:04 giann