Create a User Recipe
Create your own recipe
Use the createMyRecipe
mutation to create a new user recipe.
These recipes are associated with the user's profile and can only be seen and used by them. You can query for a user's recipes using myRecipes
query.
You may add the recipe object to the mutation's response to geting additional data about the created recipe, such as its id
.
User recipes cannot be added or used in the meal plan.
Prerequisites
Available Arguments
Name | Type | Required? | Description |
| String | Yes | Name of the recipe |
| String | Yes | Tags representing the courses associated with the recipe. For example Main dishes, Side Dishes, Appetizers, Salads, etc. |
| String | Yes | Tags representing the cuisines associated with the recipe. |
| [String] | Yes | Description of the recipe ingredients. Separate them by using commas. |
| Yes | An object that includes the ingredient amount for a given food. | |
| String | Yes | An array of cooking instruction lines. |
| Yes | Description of the food | |
| Int | No | Original recipe number of servings |
| Language | No | Language code of the recipe. Possible Values:
|
| String | No | Meal tags. Possible values: "VEGETARIAN", "Shake", "PLANT_BASED", "DAIRY_FREE", "VEGAN", "GLUTEN_FREE" |
| String | No | Total preparation and cooking time in text format E.g., 5 minutes |
| Int | No | Total preparation and cooking time in seconds |
| String | No | Image URL |
| String | No | Image URL |
Available Fields
The following field will be part of the response.
Field name | Type | Description |
| String | True if the recipe has been created. Otherwise, it displays False |
| String | Description of the result |
| Recipe object which returns the information of the recipe. |
Example
The following example create a recipe. As a part of the response, the id
and name
of the recipe are returned.
Last updated