UNPKG

@graphql-mesh/transport-rest

Version:
6 lines (5 loc) 227 B
export function processDiscriminatorAnnotations({ interfaceType, discriminatorFieldName, }) { interfaceType.resolveType = function discriminatorDirectiveHandler(root) { return root[discriminatorFieldName]; }; }