@nestjs/graphql
Version:
GraphQL for NestJS: code-first and schema-first APIs, resolvers as providers, subscriptions, federation and generated SDL, on Apollo or Mercurius.
6 lines (5 loc) • 432 B
JavaScript
export class DefaultValuesConflictError extends Error {
constructor(hostTypeName, fieldName, decoratorDefaultVal, initializerDefaultVal) {
super(`Error caused by mis-matched default values for the "${fieldName}" field of "${hostTypeName}". The default value from the decorator "${decoratorDefaultVal}" is not equal to the property initializer value "${initializerDefaultVal}". Ensure that these values match.`);
}
}