hoangvvo / next-connect

The TypeScript-ready, minimal router and middleware layer for Next.js, Micro, Vercel, or Node.js http/http2
https://www.npmjs.com/package/next-connect
MIT License
1.62k stars 65 forks source link

graphql-shield #155

Closed Manubi closed 2 years ago

Manubi commented 2 years ago

Hey, can anyone tell my how I would I use next-connect with graphql-shield https://graphql-shield.vercel.app/docs ? Because my idea is to use next-connect instead of graphql-middleware

thanks!

hoangvvo commented 2 years ago

I don't think it is possible, graphql-shield seems to be rewritten to support graphql-middleware, which applies effects on GraphQL resolvers, and not HTTP Handler (which next-connect deals with).

Manubi commented 2 years ago

Hi, thanks! :) cheers

On 11.08.2021, at 16:19, Hoang @.***> wrote:

I don't think it is possible, graphql-shield seems to be rewritten to support graphql-middleware, which applies effects on GraphQL resolvers, and not HTTP Handler (which next-connect deals with).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hoangvvo/next-connect/issues/155#issuecomment-896868154, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE7XDYQM6PUY3SPF4Q2KYYLT4KBI7ANCNFSM5B4CPX5Q.