GraphQL 面试题与答案
相关差异对比
问题 31. How does GraphQL handle over-fetching and under-fetching issues?
GraphQL addresses over-fetching by allowing clients to specify the exact data they need. It mitigates under-fetching by enabling clients to request additional fields as needed, avoiding multiple round trips for data fetching.
这有帮助吗?
添加评论
查看评论
问题 32. What is the difference between a schema and a type in GraphQL?
A schema in GraphQL is a collection of types that define the structure of the API. Types, on the other hand, represent the shape of the data, including scalar types, object types, and custom types defined in the schema.
这有帮助吗?
添加评论
查看评论
用户评价最有帮助的内容: