A recipe management app built with Hasura GraphQL Backend and Flutter
- Open the rm_graphql_client folder in VS Code or Android Studio.
- Launch an iPhone/Android simulator. Alternatively, connect your Android phone and enable USB debugging.
- Run
flutter run
in the terminal or use the launch button in your editor.
- Visit your GraphiQL interface -> http://localhost:8080/console
- In the query section enter:
mutation InsertRecipes($objects: [recipes_insert_input!]!) {
insert_recipes(objects: $objects) {
returning {
id
name
description
image_url
__typename
ingredients {
id
name
recipe_id
__typename
}
}
}
}
- In the query variables section paste the contents of data.json
- Execute the query to seed your database 🚀
Check out the starter branch for the base setup of this course.
See the full course for further instructions.