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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *