graphql-paper
Version:
A flexible in-memory store based on a GraphQL Schema
13 lines (11 loc) • 355 B
JavaScript
;
function createBoundOperations(operations, context) {
const boundOperations = {};
for (const key in operations) {
const fn = operations[key];
boundOperations[key] = fn.bind(null, context);
}
return boundOperations;
}
exports.createBoundOperations = createBoundOperations;
//# sourceMappingURL=create-bound-operations.js.map