Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
GraphqlDistributedModule.forRoot({
autoSchemaFile: 'graphs/plan.gql',
introspection: true,
buildSchemaOptions: {
orphanedTypes: [Plan],
},
playground: {
workspaceName: 'GRAPHQL SERVICE PLAN',
settings: {
'editor.theme': 'light',
},
},
context: ({ req, res }) => buildContext({ req, res }),
}),
CoreModule,
StripeModule.forRoot({
apiKey: AppConfig.payment?.stripe?.secretKey,
}),
TerminusModule.forRootAsync({
imports: [AppModule],
useClass: HealthOptionsService,
}),
BillingModule,
PlanModule,
CardModule,
InvoiceModule,
SubscriptionModule,
],
controllers: [AppController],
providers: [
AppService,
MongoHealthIndicator,