@graphql-tools/webpack-loader-runtime

Functions#

Variables#

uniqueCode#

Const uniqueCode: * var names = {}; function unique(defs) { return defs.filter(function (def) { if (def.kind !== 'FragmentDefinition') return true; var name = def.name.value; if (names[name]) { return false; } else { names[name] = true; return true; } }); };

Defined in: packages/webpack-loader-runtime/src/index.ts:3

Functions#

useUnique#

useUnique(): function

Returns: function

Defined in: packages/webpack-loader-runtime/src/index.ts:19