typegraphql-prisma
typegraphql-prisma copied to clipboard
additional-decorators Document misspelling
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()],
},
},
});
Please create a PR with the fix 😉
Fixed by #339 🔒