
GraphQL with NestJS
Apollo Server, resolvers, schemas, queries, mutations, subscriptions, data loaders
1What is GraphQL?
What is GraphQL?
Câu trả lời
GraphQL is a query language for APIs developed by Facebook, allowing clients to request exactly the data they need. Unlike REST where each endpoint returns a fixed structure, GraphQL provides a single entry point with a strongly typed schema. This approach reduces over-fetching and under-fetching of data while improving application performance.
2What is the main role of a GraphQL schema?
What is the main role of a GraphQL schema?
Câu trả lời
The GraphQL schema defines the complete API structure by specifying available data types, queries, mutations, and relationships between entities. It serves as a contract between client and server, enabling automatic query validation and autocomplete in development tools. The schema uses Schema Definition Language (SDL) to declaratively describe types and their fields.
3What is the difference between Query and Mutation?
What is the difference between Query and Mutation?
Câu trả lời
Queries are used to read data without modifying server state, while Mutations are used to create, update or delete data. This semantic distinction helps understand an operation's intent and allows the server to apply specific optimizations. By convention, Queries can be executed in parallel, while Mutations are executed sequentially to ensure data consistency.
What is a resolver in GraphQL?
Which NestJS decorator defines a GraphQL Query?
+22 câu hỏi phỏng vấn
Các chủ đề phỏng vấn Node.js / NestJS khác
Node.js Fundamentals
Node.js Core APIs
Asynchronous Programming
Express.js Basics
NestJS Fundamentals
REST API Design
Validation & DTO
API Documentation & Contracts
Error Handling
Unit Testing
Task Scheduling
NestJS Modules & DI
Configuration & Environment Management
JWT Authentication
Authorization & RBAC
Database with TypeORM
Prisma ORM
Middleware & Interceptors
File Upload
WebSockets
End-to-End Testing
Caching with Redis
Queues with Bull
DevOps, Logging & CI/CD
Docker & Containerization
Microservices
Security Best Practices
Performance & Cloud Deployment
Nắm vững Node.js / NestJS cho lần phỏng vấn tiếp theo
Truy cập tất cả câu hỏi, flashcards, bài kiểm tra kỹ thuật, bài tập code review và mô phỏng phỏng vấn.
Bắt đầu miễn phí