Load Existing Data from a Hasura Database using Netlify Serverless Functions

InstructorJason Lengstorf

Share this video with your friends

Send Tweet

We'll load existing data from our Hasura database using serverless functions. The first step will be to create a new mutation in the Hasura GraphiQL named InserOrUpdateBoops.

We need to make sure that all the corgis are being loaded into our database. Once they are loaded, we can set the count to zero. We do this by defining a GraphQL mutation using an autogenerated variable provided by Hasura called, boops_insert_input!.

Our application loads the existing data but the functionality to save the values from the client-side is still not available.