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
[ ] Regression
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request
Current behavior
A global prefix has been set at the app level, but it won't work with the Apollo Gateway module. Accessing ../api/graphql results in a 404 but ../graphql works.
Expected behavior
Since the global prefix has been set to /api, the GraphQL endpoint should be accessible at ../api/graphql
Minimal reproduction of the problem with instructions
I'm using the following app module code:
using the following code in the app module:
@Module({imports: [GraphQLGatewayModule.forRootAsync({useFactory: ()=>({server: {cors: true,useGlobalPrefix: true,// .. set as '/api' in main.tspath: '/graphql',},gateway: {serviceList: /* .. my services */,},}),}),],})exportclassAppModule{}
What is the motivation / use case for changing the behavior?
Environment
Nest version: 7.4.2
For Tooling issues:
- Node version: XX
- Platform:
Others:
The text was updated successfully, but these errors were encountered:
I'm submitting a...
Current behavior
A global prefix has been set at the app level, but it won't work with the Apollo Gateway module. Accessing
../api/graphql
results in a 404 but../graphql
works.Expected behavior
Since the global prefix has been set to
/api
, the GraphQL endpoint should be accessible at../api/graphql
Minimal reproduction of the problem with instructions
I'm using the following app module code:
using the following code in the app module:
What is the motivation / use case for changing the behavior?
Environment
The text was updated successfully, but these errors were encountered: