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: Create recipe #10

Open
1 task
RadekBucki opened this issue Mar 25, 2023 · 0 comments
Open
1 task

FE iOS: Create recipe #10

RadekBucki opened this issue Mar 25, 2023 · 0 comments

Comments

@RadekBucki
Copy link
Collaborator

RadekBucki commented Mar 25, 2023

  • Use this GraphQL mutation to create Recipe:
mutation {
  createRecipe(
      name: "name"
      description: "description"
      timeOfPreparation: 30
      steps: [
        "Step 1",
        "Step 2"
      ]
      calories: 100
      fat: 10
      sugar: 10
      sodium: 10
      protein: 10
      saturatedFat: 10
      carbohydrates: 10
      ingredients [
                {
                    name: "water"
                }
                {
                    name: "salt"
                }
      ]
      tags [
                {
                    name: "tag1"
                }
                {
                    name: "tag2"
                }
      ]
  ) {
      id
      name
      description
      timeOfPreparation
      numberOfSteps
      steps
      numberOfIngredients
      calories
      fat
      sugar
      sodium
      protein
      saturatedFat
      carbohydrates
      reviews {
        id
        review
        rating
      }
      ingredients {
        id
        name
      }
      tags {
        id
        name
      }
  }
}
@RadekBucki RadekBucki converted this from a draft issue Mar 25, 2023
@RadekBucki RadekBucki moved this from Waiting for technical design to Ready for development in Foodzilla Mar 26, 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