You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`query.batch` works like `query` except that it batches requests that happen within the same macrotask. This solves the so-called n+1 problem: rather than each query resulting in a separate database call (for example), simultaneous queries are grouped together.
231
-
232
-
On the server, the callback receives an array of the arguments the function was called with. It must return a function of the form `(input:Input, index:number) => Output`. SvelteKit will then call this with each of the input arguments to resolve the individual calls with their results.
0 commit comments