.. (לתיקייה המכילה) | ||
In "findRecipesWithMixers" should we return the recipes that contain the words "Mixer", "miXer" or "magimixer" in their instructions? | |
Yes for all the above cases and similar ones as well. |
In "calcIngredeintsUsage", if an ingredient exists in the "costs" collection, but is not used by any recipe, should we include it in the results? | |
No. |
Should we handle the case where a recipe’s ingredients list contains the same ingredient name more than once? | |
No, ignore that case. |
In the dry part, question 2, the XPath queries are invalid because of the use of '\' instead of '/'. Is this on purpose? | |
No, please download the updated PDF file of the dry part. |
In "calcCosts", what is the meaning of the "_id" field in the results? Should it be a new id, or one that is already being used by a recipe? | |
Doesn't matter, as long as it is unique in the collection "results3". |
How should I test my script? | |
It is advisable that you test your script by creating your own DB and data. After which run your script, and verify you get the desired results. (We have not provided or made available a pre-made database.) |
In "calcIngredeintsUsage", how can we convert the type of the field "value" from Double to Int32? | |
Don't, you can leave it as Double. |
In the dry part, question 2, "country" and "city" are not properly defined in the DTD. Is that a mistake? | |
Yes. Once again, please download the updated PDF file of the dry part. (Alterations are highlighted in yellow) |