Skip to content

Instantly share code, notes, and snippets.

@mcat56
Created February 4, 2020 22:38
Show Gist options
  • Save mcat56/f4b16f2fe0a4dfb5dc0375c9d6d5abcf to your computer and use it in GitHub Desktop.
Save mcat56/f4b16f2fe0a4dfb5dc0375c9d6d5abcf to your computer and use it in GitHub Desktop.

1. What is under-fetching

Under fetching is when you must make multiple api calls to get all the information that you need. For example, making an api call to get an id, with which you must make another api call to get nested information off that id

2. What is over-fetching

Over fetching is when you get more information than you need in the response

3. How does GraphQL help with these

GraphQL helps by allowing the developer to request and use only the exact information they want and need, you can also get nested relationships by defining them in your schema and including them in your queries

Your repo URL: https://github.com/mcat56/pets_gql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment