typegraphql-prisma icon indicating copy to clipboard operation
typegraphql-prisma copied to clipboard

additional-decorators Document misspelling

Open stevezhou6 opened this issue 2 years ago • 1 comments

Describe the Bug It shouldn't be applyOutputTypeEnhanceMap, it's applyOutputTypesEnhanceMap.

In case of other output types like AggregateFooBar, you can use the same pattern but this time using the applyOutputTypeEnhanceMap function and OutputTypeConfig or OutputTypesEnhanceMap types:

const aggregateClientConfig: OutputTypeConfig<"AggregateClient"> = {
  fields: {
    avg: [Extensions({ complexity: 10 })],
  },
};

applyOutputTypeEnhanceMap({
  // separate config
  AggregateClient: aggregateClientConfig,
  // or an inline one
  ClientAvgAggregate: {
    fields: {
      _all: [Extensions({ complexity: 10 })],
      age: [Authorized()],
    },
  },
});

stevezhou6 avatar Mar 10 '22 08:03 stevezhou6

Please create a PR with the fix 😉

MichalLytek avatar Mar 10 '22 08:03 MichalLytek

Fixed by #339 🔒

MichalLytek avatar Oct 18 '23 11:10 MichalLytek