You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
So if i configure postgraphile using the official doc like:
**> `For Nest, this might look something like:
import { Controller, Get, Post, Req, Next, Res } from '@nestjs/common';
import { Request, Response } from 'express';
import { PostGraphileResponseNode } from 'postgraphile';
import { middleware } from './postgraphile.middleware';
All my nestjs global interceptors and guards work.
But when i configure postgraphile using your module's forRoot method, none of my global interceptors/guards get executed. I'm able to execute middlewares configured for /graphql but not interceptors/guards.
Any hint would be helpful. Thank you.
The text was updated successfully, but these errors were encountered:
I realized postgraphile instance is being used as a middleware directly using app.use(postgraphile) and thus interceptors/guards will not run.
Any chance of exposing the postgraphile instance instead of mounting as a middleware?
Hi,
So if i configure postgraphile using the official doc like:
**> `For Nest, this might look something like:
All my nestjs global interceptors and guards work.
But when i configure postgraphile using your module's forRoot method, none of my global interceptors/guards get executed. I'm able to execute middlewares configured for /graphql but not interceptors/guards.
Any hint would be helpful. Thank you.
The text was updated successfully, but these errors were encountered: