(typeName: string)
| 647 | } |
| 648 | |
| 649 | private getType(typeName: string) { |
| 650 | const type = this.schema.getType(typeName); |
| 651 | |
| 652 | if (!type || !(isObjectType(type) || isInterfaceType(type))) { |
| 653 | throw new Error(`${typeName} does not exist on schema or is not an object or interface`); |
| 654 | } |
| 655 | |
| 656 | return type; |
| 657 | } |
| 658 | |
| 659 | private isKeyField(typeName: string, fieldName: string) { |
| 660 | return this.getKeyFieldName(typeName) === fieldName; |
no outgoing calls
no test coverage detected