GraphQL اسئلة واجوبة المقابلات
فروقات ذات صلة
سؤال 6. Explain the difference between GraphQL and REST.
GraphQL is a query language that allows clients to request the specific data they need, while REST is an architectural style that uses predefined endpoints to expose data. GraphQL provides more flexibility and efficiency in fetching data compared to REST.
سؤال 7. What is a resolver in GraphQL?
A resolver is a function that determines how to fetch the requested data. It is responsible for resolving the data from the server's data sources and returning it to the client. Resolvers are defined for each field in a GraphQL schema.
سؤال 8. Explain GraphQL schemas and types.
A GraphQL schema defines the types of data that can be queried and the relationships between them. Types represent the shape of the data, and the schema serves as a contract between the client and the server regarding the structure of the API.
سؤال 9. What is a mutation in GraphQL?
A mutation is a GraphQL operation used to modify data on the server. It is similar to a query but is used for actions that cause a change in the data, such as creating, updating, or deleting records.
سؤال 10. What are the main advantages of using GraphQL?
GraphQL allows clients to request only the data they need, reducing over-fetching and under-fetching issues. It provides a single endpoint for all data operations, enabling more efficient and flexible data fetching.
الاكثر فائدة حسب تقييم المستخدمين: