What is the primary difference in the way data is retrieved between GraphQL and REST?
- Both retrieve data in the same way
- GraphQL retrieves fixed data structures, while REST allows clients to request only the data they need
- None of the above
- REST retrieves fixed data structures, while GraphQL allows clients to request only the data they need
GraphQL allows clients to specify the exact data they need, minimizing over-fetching or under-fetching, while REST returns fixed data structures.
Loading...
Related Quiz
- In terms of API versioning, how does GraphQL differ from REST?
- In a scenario where a web service must support multiple clients with different needs, how does WSDL contribute?
- Which scripting language is commonly exploited in Cross-Site Scripting (XSS) attacks?
- The _______ algorithm in TLS is used for key agreement and establishment.
- In a Microservices Architecture, when a new service is added, what factor is most critical for system stability?