unreal-chat/apps/api/package.json
Jusemon 19bb0b5bdf refactor: migrate API from Apollo Server to Mercurius and enhance GraphQL implementation
- Replaced Apollo Server with Mercurius for GraphQL API
- Updated resolvers to use Mercurius-compatible GraphQL implementation
- Migrated from Express to Fastify for server framework
- Improved error handling with GraphQL error extensions
- Added Zod for environment variable validation
- Updated Prisma schema and migrations
- Configured CORS and WebSocket subscriptions
- Simplified GraphQL schema and resolver structure
- Enhanced type safety and code organization
2025-03-06 03:04:40 -05:00

38 lines
1 KiB
JSON

{
"name": "api",
"version": "1.0.0",
"description": "This project was bootstrapped with Fastify-CLI.",
"main": "dist/index.js",
"directories": {
"test": "test"
},
"scripts": {
"test": "ts-node --test test/**/*.test.ts",
"start": "node dist/index.js",
"dev": "nodemon --delay 2000ms src/index.ts",
"prisma:generate": "dotenv -e ../../.env -- prisma generate",
"prisma:migrate": "dotenv -e ../../.env -- prisma migrate dev",
"prisma:init": "dotenv -e ../../.env -- prisma migrate dev --name init",
"build": "tsc"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@fastify/cors": "^11.0.0",
"@prisma/client": "^6.4.1",
"dotenv": "^16.4.7",
"fastify": "^5.2.1",
"fastify-cli": "^7.3.0",
"fastify-plugin": "^5.0.0",
"graphql": "^16.10.0",
"mercurius": "^16.1.0",
"mercurius-codegen": "^6.0.1",
"zod": "^3.24.2"
},
"devDependencies": {
"@repo/eslint-config": "*",
"@repo/typescript-config": "*",
"prisma": "^6.4.1"
}
}