@apollo/client
Version:
A fully-featured caching GraphQL client.
16 lines (15 loc) • 463 B
JavaScript
import { compact } from "./compact.js";
/**
* @internal
*
* @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
*/
export function mergeOptions(defaults, options) {
return compact(defaults, options, options.variables && {
variables: compact({
...(defaults && defaults.variables),
...options.variables,
}),
});
}
//# sourceMappingURL=mergeOptions.js.map