RomainLanz / adonis-graphql

GraphQL Provider for AdonisJs Framework
MIT License
104 stars 18 forks source link

Security questions. #31

Open popovicieduard opened 4 years ago

popovicieduard commented 4 years ago

I've been developing an app with this package but recently I started reading more about graphql security and so on, I was wondering if there is a way to use https://github.com/stems/graphql-depth-limit for example, and are there any tips or advice that you can give me on this matter ?

Or code examples for directives for example, because as of now, Adonis doesn't allow using middleware in controllers like Laravel: https://laravel.com/docs/5.5/controllers#controller-middleware and the only way to validate requests and data with graphql that I tought of is done inside the controller.

Thank you in advance, Great work on this package.