Course lesson

Reuse Query Settings using the queryOptions API

queryOptions lets you pull the options of a query out into its own variable. This is useful because there are many cases where you'd need to reuse the options: re-fetches, running different query types, etc.

Duration
3 min
Access
Included
Transcript
Retained from source evidence

queryOptions lets you pull the options of a query out into its own variable. This is useful because there are many cases where you'd need to reuse the options: re-fetches, running different query types, etc.