@nestjs/graphql
Version:
GraphQL for NestJS: code-first and schema-first APIs, resolvers as providers, subscriptions, federation and generated SDL, on Apollo or Mercurius.
9 lines (8 loc) • 477 B
JavaScript
export class InterfaceNotRegisteredError extends Error {
constructor(hostTypeName, interfaceRef) {
const interfaceName = (interfaceRef && interfaceRef.name) || String(interfaceRef);
super(`"${hostTypeName}" lists "${interfaceName}" in its "implements" option, but ` +
`"${interfaceName}" is not registered as an . ` +
`Make sure every class referenced from "implements" is decorated with .`);
}
}