Add Intercepter or Middleware with GraphQL Apis
Add a middleware or interceptor along with default graphql apis. So we can do some custom validation before start querying database.
Scenario: If I want a user to restrict number of reads per collection, the best approach is go with custom resolver. But if there is a default pre-hook and post-hook , It would be great
![](https://secure.gravatar.com/avatar/e35a017d6fa8fd1e249ff81fde897228?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
Hi all,
We recently announced that we have decided to deprecate the Atlas GraphQL API, and current users should’ve received an email explaining the details of the deprecation and end-of-life plan. Consequently, we will not be adding new features going forward and are updating the status for all related feedback accordingly.
Please read our announcement in the MongoDB Developer Center for more details and guidance on the migration process and timeline. Should you have any questions or need further assistance, please reach out to our support team via the MongoDB Support Portal.
We truly prioritize your satisfaction and success, and we thank you for your patience and the feedback you have provided us over the years.