Carlo Corradini

Results 86 comments of Carlo Corradini

@MichalLytek I can create a PR to solve this issue. What do you prefer: 1. `funding` in `package.json` only 2. Installation script in pure JS (Nodemon style) in a dedicated...

It's happening 😍🥳

I've tested it in my project and can confirm that v2.0 works like a charm.

@MichalLytek  Instead of generic `Error`, the error classes related to `GraphQL` can extend [GraphQLError](https://github.com/graphql/graphql-js/blob/main/src/error/GraphQLError.ts).

@okaforcj For me it's working without any problems (TypeGraphQL v2 & Apollo Server v4): ![img](https://user-images.githubusercontent.com/21266147/197382652-8d31878f-6692-48ac-8d8f-949c721ea4b2.png) ## Context: ### Project ### `main.ts` (Apollo Server, etc...) ### Custom errors ### `formatError.ts`

@okaforcj What was the error? :)

Instead of reading `project` from `import/resolver -> typescript` can we read it from `parserOptions`? As far as I know, to add Typescript support to eslint, `@typescript-eslint/parser` is a must. Therefore,...

Ok, there is a purpose. So, there are no workarounds (as far as I understood)?

Hey, I want to share my `authDirective` based on [graphql-tools Schema Directives](https://www.the-guild.dev/graphql/tools/docs/schema-directives#enforcing-access-permissions) and [TypeGraphQL Authorization](https://typegraphql.com/docs/authorization.html). I hope you find this useful (__please share your thoughts and suggestions or criticisms__): __`authDirective.ts`__:...

Hey everyone, if you are struggling with `@auth` directive I've created the [graphql-auth-directive](https://github.com/carlocorradini/graphql-auth-directive) library.  It's fully configurable and compatible with vanilla `GraphQL` and `TypeGraphQL`. See [this](https://github.com/carlocorradini/graphql-auth-directive/tree/main/examples/typegraphql). I hope it will...