/
githubmirror
/
nest
Обзор
Документация
Войти
/
githubmirror
/
nest
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
sample/22-graphql-prisma/src/main.ts
13 строк
437 B
Tony133
sample(): upgrade sample 22-graphql-prisma
10 июл 2022, 16:43
10 июл 2022, 16:43
1d2cc84
Код
Авторство
О чём код?
import { ValidationPipe } from '@nestjs/common'; import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; async function bootstrap() { const app = await NestFactory.create(AppModule); app.useGlobalPipes(new ValidationPipe()); await app.listen(3000); console.log(`Application is running on: ${await app.getUrl()}`); console.log(`GraphQL Playground: ${await app.getUrl()}/graphql`); } bootstrap();