Update submodule URL for epess-database
This commit is contained in:
@@ -1,13 +1,35 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { GraphQLModule } from '@nestjs/graphql';
|
||||
import { ApolloDriver, ApolloDriverConfig } from '@nestjs/apollo';
|
||||
import { schema } from './graphql.schema'; // Assuming you have schema defined in a separate file
|
||||
|
||||
const subOperationHandler = (message: any, params: any, webSocket: any) => {
|
||||
console.log('onOperation');
|
||||
return params;
|
||||
};
|
||||
@Module({
|
||||
imports: [
|
||||
GraphQLModule.forRoot<ApolloDriverConfig>({
|
||||
driver: ApolloDriver, // Specify the driver
|
||||
schema, // Your Pothos-generated schema
|
||||
buildSchemaOptions: {
|
||||
numberScalarMode: 'integer',
|
||||
},
|
||||
subscriptions: {
|
||||
'subscriptions-transport-ws': {
|
||||
keepAlive: 5000,
|
||||
path: '/graphql-sub',
|
||||
onOperation: (message: any, params: any, webSocket: any) => {
|
||||
subOperationHandler(message, params, webSocket);
|
||||
return params;
|
||||
},
|
||||
onConnect: (connectionParams: any, webSocket: any) => {
|
||||
console.log('onConnect');
|
||||
return connectionParams;
|
||||
},
|
||||
onDisconnect: (webSocket: any) => {
|
||||
console.log('onDisconnect');
|
||||
},
|
||||
},
|
||||
},
|
||||
playground: {
|
||||
workspaceName: 'EPESS',
|
||||
tabs: [
|
||||
|
||||
Reference in New Issue
Block a user