All files / domains/field services.ts

50% Statements 3/6
0% Branches 0/2
0% Functions 0/1
50% Lines 3/6

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 817x 17x           17x
import { fieldsRegistry, queryFieldsRegistry } from './registry';
 
export function isQueryField(target: Function, fieldName: string) {
  const fieldRegistered = fieldsRegistry.get(target, fieldName);
  const queryFieldRegistered = queryFieldsRegistry.get(target, fieldName);
  return fieldRegistered && fieldRegistered === queryFieldRegistered;
}