MCPcopy
hub / github.com/mickhansen/graphql-sequelize / argsToWhere

Function argsToWhere

src/relay.js:175–186  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

173 };
174
175 let argsToWhere = function (args) {
176 let result = {};
177
178 if (where === undefined) return result;
179
180 _.each(args, (value, key) => {
181 if (ignoreArgs && key in ignoreArgs) return;
182 Object.assign(result, where(key, value, result));
183 });
184
185 return replaceWhereOperators(result);
186 };
187
188 let resolveEdge = function (item, index, queriedCursor, sourceArgs = {}, source) {
189 let startIndex = null;

Callers 2

createConnectionResolverFunction · 0.85
resolveConnectionFunction · 0.85

Calls 1

replaceWhereOperatorsFunction · 0.90

Tested by

no test coverage detected