2022.05.16 — Javascript — 1 min read
Copycopy code to clipboard1const { query: { someQuery } } = context;2const { data } = await fetchSomething({3 params: {4 ...(someQuery && { someQuery }),5 },6});
1const { query: { someQuery } } = context;2const { data } = await fetchSomething({3 params: {4 ...(someQuery && { someQuery }),5 },6});