Category: Database, Data, github

by Requesting data from the database or making updates to records stored in the database should be simple so that frontend developer can focus on what they do best: creating beautiful and intuitive user interfaces.

Now that we have our backend up and running, we need to create the schema for the type of data we'll have in our database.

In the body of the request, we provide our GraphQL code as the query, we write a descriptive name for the query or mutation as the operationName, and then we optionally provide an object of any variables we reference in our GraphQL code. Here's a simplified version of how we follow this pattern to fetch our Pokémon in the app: We then take that data and loop over it using the Array map helper function to display each Pokémon in the UI.

Related Articles