repo_description: Create GraphQL schema and resolvers with TypeScript, using classes and decorators!
repo_topics: api controllers decorators gql graphql graphql-js graphql-schema hacktoberfest resolvers schema typescript
code: export class ConflictingDefaultValuesError extends Error {
    constructor(
      typeName: string,
      fieldName: string,
      defaultValueFromDecorator: unknown,
      defaultValueFromInitializer: unknown,
    ) {
      super(
        `The '${fieldName}' field of '${typeName}' has conflicting default values. ` +
          `Default value from decorator ('${defaultValueFromDecorator}') ` +
          `is not equal to the property initializer value ('${defaultValueFromInitializer}').`,
      );
  
      Object.setPrototypeOf(this, new.target.prototype);
    }
  }
  