Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
types.forEach((t: InputModelTypeContext) => {
if (t.config.find) {
queries.push({
name: getFieldName(t.name, GraphbackOperationType.FIND),
implementation: findQuery(t)
})
}
if (t.config.findAll) {
queries.push({
name: getFieldName(t.name, GraphbackOperationType.FIND_ALL, 's'),
implementation: findAllQuery(t)
})
}
})