Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FE iOS: Favourite recipes #24

Open
3 tasks
RadekBucki opened this issue Apr 29, 2023 · 0 comments
Open
3 tasks

FE iOS: Favourite recipes #24

RadekBucki opened this issue Apr 29, 2023 · 0 comments

Comments

@RadekBucki
Copy link
Collaborator

  • Use this muation for add:
mutation addRecipeToFavourites($recipeId: ID!) {
    addRecipeToFavourites(
        recipeId: $recipeId
    ) {
        id
        name
        description
        timeOfPreparation
        numberOfSteps
        steps
        numberOfIngredients
        calories
        fat
        sugar
        sodium
        protein
        saturatedFat
        carbohydrates
        reviews {
            review
            rating
        }
        ingredients {
            name
        }
        tags {
            name
        }
    }
}
  • Use this muation for remove:
mutation removeRecipeFromFavourites($recipeId: ID!) {
    removeRecipeFromFavourites(
        recipeId: $recipeId
    ) {
        id
        name
        description
        timeOfPreparation
        numberOfSteps
        steps
        numberOfIngredients
        calories
        fat
        sugar
        sodium
        protein
        saturatedFat
        carbohydrates
        reviews {
            review
            rating
        }
        ingredients {
            name
        }
        tags {
            name
        }
    }
}
  • And this query to get:
{
    favouriteRecipes {
        id
        name
        description
        timeOfPreparation
        numberOfSteps
        steps
        numberOfIngredients
        calories
        fat
        sugar
        sodium
        protein
        saturatedFat
        carbohydrates
        image
        reviews {
            review
            rating
        }
        ingredients {
            name
        }
        tags {
            name
        }
    }
}
@RadekBucki RadekBucki converted this from a draft issue Apr 29, 2023
@aniaxb aniaxb moved this from Ready for development to In Progress in Foodzilla May 18, 2023
@aniaxb aniaxb moved this from In Progress to Ready for development in Foodzilla May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready for development
Development

No branches or pull requests

1 participant