graphql-request
Version:
Minimal GraphQL client supporting Node and browsers for scripts or simple apps.
12 lines • 346 B
JavaScript
const name = `defer`;
export const parseClientDirectiveDefer = (input) => {
const args = {
if: typeof input === `boolean` ? input : input.if === undefined ? true : input.if,
label: typeof input === `boolean` ? undefined : input.label,
};
return {
name,
args,
};
};
//# sourceMappingURL=defer.js.map