Closed glennwilton closed 6 years ago
In the documentation the options() and optionsResolve() send the full records as JSON to the frontend.
It would be better to filter these by the modelKeyName and valueKey so only send whats required.
Alternatively change the documentation as below to only get the required fields.
->optionsResolve(function ($customer) { return $customer->sites()->get(['siteID', 'siteDescription']); })
Thanks 👍 I have decided you change the README.
In the documentation the options() and optionsResolve() send the full records as JSON to the frontend.
It would be better to filter these by the modelKeyName and valueKey so only send whats required.
Alternatively change the documentation as below to only get the required fields.