diff --git a/coverage/coverage-final.json b/coverage/coverage-final.json index 6bef7d8..d4861cd 100644 --- a/coverage/coverage-final.json +++ b/coverage/coverage-final.json @@ -1,11 +1,11 @@ -{"C:\\Users\\nick-\\repos\\mypets\\back\\src\\index.js": {"path":"C:\\Users\\nick-\\repos\\mypets\\back\\src\\index.js","statementMap":{"0":{"start":{"line":6,"column":17},"end":{"line":6,"column":28}},"1":{"start":{"line":8,"column":20},"end":{"line":13,"column":1}},"2":{"start":{"line":9,"column":2},"end":{"line":9,"column":22}},"3":{"start":{"line":10,"column":2},"end":{"line":10,"column":33}},"4":{"start":{"line":12,"column":2},"end":{"line":12,"column":78}},"5":{"start":{"line":12,"column":25},"end":{"line":12,"column":77}},"6":{"start":{"line":15,"column":0},"end":{"line":15,"column":13}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":8,"column":20},"end":{"line":8,"column":21}},"loc":{"start":{"line":8,"column":32},"end":{"line":13,"column":1}},"line":8},"1":{"name":"(anonymous_1)","decl":{"start":{"line":12,"column":19},"end":{"line":12,"column":20}},"loc":{"start":{"line":12,"column":25},"end":{"line":12,"column":77}},"line":12}},"branchMap":{},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0},"f":{"0":0,"1":0},"b":{}} -,"C:\\Users\\nick-\\repos\\mypets\\back\\src\\db\\mongoose.js": {"path":"C:\\Users\\nick-\\repos\\mypets\\back\\src\\db\\mongoose.js","statementMap":{"0":{"start":{"line":3,"column":18},"end":{"line":6,"column":2}}},"fnMap":{},"branchMap":{},"s":{"0":3},"f":{},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"228bc9a2036727805084b1f366cae176c8879e7c"} -,"C:\\Users\\nick-\\repos\\mypets\\back\\src\\functions\\dbOps.js": {"path":"C:\\Users\\nick-\\repos\\mypets\\back\\src\\functions\\dbOps.js","statementMap":{"0":{"start":{"line":9,"column":15},"end":{"line":14,"column":1}},"1":{"start":{"line":16,"column":29},"end":{"line":21,"column":1}},"2":{"start":{"line":17,"column":15},"end":{"line":17,"column":72}},"3":{"start":{"line":18,"column":2},"end":{"line":20,"column":52}},"4":{"start":{"line":19,"column":66},"end":{"line":19,"column":74}},"5":{"start":{"line":23,"column":26},"end":{"line":23,"column":84}},"6":{"start":{"line":23,"column":41},"end":{"line":23,"column":84}},"7":{"start":{"line":25,"column":30},"end":{"line":26,"column":75}},"8":{"start":{"line":26,"column":2},"end":{"line":26,"column":75}},"9":{"start":{"line":26,"column":51},"end":{"line":26,"column":74}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":16,"column":29},"end":{"line":16,"column":30}},"loc":{"start":{"line":16,"column":60},"end":{"line":21,"column":1}},"line":16},"1":{"name":"(anonymous_1)","decl":{"start":{"line":19,"column":57},"end":{"line":19,"column":58}},"loc":{"start":{"line":19,"column":66},"end":{"line":19,"column":74}},"line":19},"2":{"name":"(anonymous_2)","decl":{"start":{"line":23,"column":26},"end":{"line":23,"column":27}},"loc":{"start":{"line":23,"column":41},"end":{"line":23,"column":84}},"line":23},"3":{"name":"(anonymous_3)","decl":{"start":{"line":25,"column":30},"end":{"line":25,"column":31}},"loc":{"start":{"line":26,"column":2},"end":{"line":26,"column":75}},"line":26},"4":{"name":"(anonymous_4)","decl":{"start":{"line":26,"column":36},"end":{"line":26,"column":37}},"loc":{"start":{"line":26,"column":51},"end":{"line":26,"column":74}},"line":26}},"branchMap":{"0":{"loc":{"start":{"line":16,"column":43},"end":{"line":16,"column":55}},"type":"default-arg","locations":[{"start":{"line":16,"column":49},"end":{"line":16,"column":55}}],"line":16},"1":{"loc":{"start":{"line":17,"column":15},"end":{"line":17,"column":72}},"type":"cond-expr","locations":[{"start":{"line":17,"column":39},"end":{"line":17,"column":67}},{"start":{"line":17,"column":70},"end":{"line":17,"column":72}}],"line":17},"2":{"loc":{"start":{"line":18,"column":2},"end":{"line":20,"column":52}},"type":"cond-expr","locations":[{"start":{"line":19,"column":6},"end":{"line":19,"column":77}},{"start":{"line":20,"column":6},"end":{"line":20,"column":52}}],"line":18}},"s":{"0":3,"1":3,"2":6,"3":6,"4":21,"5":3,"6":31,"7":3,"8":3,"9":12},"f":{"0":6,"1":21,"2":31,"3":3,"4":12},"b":{"0":[6],"1":[6,0],"2":[6,0]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"4201aa6a4c069baf67054e6799afd86a822e5e0c"} -,"C:\\Users\\nick-\\repos\\mypets\\back\\src\\functions\\encrypt.js": {"path":"C:\\Users\\nick-\\repos\\mypets\\back\\src\\functions\\encrypt.js","statementMap":{"0":{"start":{"line":3,"column":27},"end":{"line":7,"column":1}},"1":{"start":{"line":4,"column":2},"end":{"line":6,"column":10}},"2":{"start":{"line":9,"column":27},"end":{"line":15,"column":1}},"3":{"start":{"line":10,"column":2},"end":{"line":14,"column":10}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":27},"end":{"line":3,"column":28}},"loc":{"start":{"line":3,"column":35},"end":{"line":7,"column":1}},"line":3},"1":{"name":"(anonymous_1)","decl":{"start":{"line":9,"column":27},"end":{"line":9,"column":28}},"loc":{"start":{"line":9,"column":35},"end":{"line":15,"column":1}},"line":9}},"branchMap":{"0":{"loc":{"start":{"line":4,"column":9},"end":{"line":6,"column":10}},"type":"cond-expr","locations":[{"start":{"line":5,"column":6},"end":{"line":5,"column":89}},{"start":{"line":6,"column":6},"end":{"line":6,"column":10}}],"line":4},"1":{"loc":{"start":{"line":10,"column":9},"end":{"line":14,"column":10}},"type":"cond-expr","locations":[{"start":{"line":11,"column":6},"end":{"line":13,"column":36}},{"start":{"line":14,"column":6},"end":{"line":14,"column":10}}],"line":10}},"s":{"0":4,"1":14,"2":4,"3":28},"f":{"0":14,"1":28},"b":{"0":[13,1],"1":[27,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"34e88a52b65bdddf3053519ee01886a274ea89ec"} -,"C:\\Users\\nick-\\repos\\mypets\\back\\src\\functions\\parsers.js": {"path":"C:\\Users\\nick-\\repos\\mypets\\back\\src\\functions\\parsers.js","statementMap":{"0":{"start":{"line":4,"column":21},"end":{"line":34,"column":1}},"1":{"start":{"line":8,"column":6},"end":{"line":10,"column":19}},"2":{"start":{"line":9,"column":20},"end":{"line":9,"column":39}},"3":{"start":{"line":15,"column":6},"end":{"line":20,"column":7}},"4":{"start":{"line":17,"column":10},"end":{"line":17,"column":52}},"5":{"start":{"line":19,"column":10},"end":{"line":19,"column":47}},"6":{"start":{"line":26,"column":6},"end":{"line":31,"column":7}},"7":{"start":{"line":28,"column":10},"end":{"line":28,"column":33}},"8":{"start":{"line":30,"column":10},"end":{"line":30,"column":24}},"9":{"start":{"line":36,"column":26},"end":{"line":41,"column":1}},"10":{"start":{"line":37,"column":2},"end":{"line":40,"column":3}},"11":{"start":{"line":38,"column":36},"end":{"line":38,"column":47}},"12":{"start":{"line":43,"column":35},"end":{"line":50,"column":1}},"13":{"start":{"line":44,"column":23},"end":{"line":44,"column":39}},"14":{"start":{"line":46,"column":2},"end":{"line":49,"column":3}},"15":{"start":{"line":48,"column":33},"end":{"line":48,"column":63}},"16":{"start":{"line":52,"column":29},"end":{"line":62,"column":1}},"17":{"start":{"line":54,"column":4},"end":{"line":54,"column":97}},"18":{"start":{"line":55,"column":44},"end":{"line":55,"column":96}},"19":{"start":{"line":57,"column":4},"end":{"line":57,"column":60}},"20":{"start":{"line":59,"column":4},"end":{"line":59,"column":68}},"21":{"start":{"line":60,"column":47},"end":{"line":60,"column":94}},"22":{"start":{"line":61,"column":22},"end":{"line":61,"column":81}},"23":{"start":{"line":64,"column":35},"end":{"line":64,"column":72}},"24":{"start":{"line":64,"column":59},"end":{"line":64,"column":71}},"25":{"start":{"line":66,"column":23},"end":{"line":73,"column":1}},"26":{"start":{"line":67,"column":2},"end":{"line":70,"column":3}},"27":{"start":{"line":68,"column":24},"end":{"line":68,"column":57}},"28":{"start":{"line":69,"column":4},"end":{"line":69,"column":43}},"29":{"start":{"line":72,"column":2},"end":{"line":72,"column":89}},"30":{"start":{"line":72,"column":63},"end":{"line":72,"column":88}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":7,"column":8},"end":{"line":7,"column":9}},"loc":{"start":{"line":8,"column":6},"end":{"line":10,"column":19}},"line":8},"1":{"name":"(anonymous_1)","decl":{"start":{"line":9,"column":13},"end":{"line":9,"column":14}},"loc":{"start":{"line":9,"column":20},"end":{"line":9,"column":39}},"line":9},"2":{"name":"(anonymous_2)","decl":{"start":{"line":14,"column":8},"end":{"line":14,"column":9}},"loc":{"start":{"line":14,"column":30},"end":{"line":21,"column":5}},"line":14},"3":{"name":"(anonymous_3)","decl":{"start":{"line":25,"column":8},"end":{"line":25,"column":9}},"loc":{"start":{"line":25,"column":25},"end":{"line":32,"column":5}},"line":25},"4":{"name":"(anonymous_4)","decl":{"start":{"line":36,"column":26},"end":{"line":36,"column":27}},"loc":{"start":{"line":36,"column":45},"end":{"line":41,"column":1}},"line":36},"5":{"name":"(anonymous_5)","decl":{"start":{"line":38,"column":22},"end":{"line":38,"column":23}},"loc":{"start":{"line":38,"column":36},"end":{"line":38,"column":47}},"line":38},"6":{"name":"(anonymous_6)","decl":{"start":{"line":43,"column":35},"end":{"line":43,"column":36}},"loc":{"start":{"line":43,"column":59},"end":{"line":50,"column":1}},"line":43},"7":{"name":"(anonymous_7)","decl":{"start":{"line":48,"column":23},"end":{"line":48,"column":24}},"loc":{"start":{"line":48,"column":33},"end":{"line":48,"column":63}},"line":48},"8":{"name":"(anonymous_8)","decl":{"start":{"line":53,"column":15},"end":{"line":53,"column":16}},"loc":{"start":{"line":54,"column":4},"end":{"line":54,"column":97}},"line":54},"9":{"name":"(anonymous_9)","decl":{"start":{"line":55,"column":16},"end":{"line":55,"column":17}},"loc":{"start":{"line":55,"column":44},"end":{"line":55,"column":96}},"line":55},"10":{"name":"(anonymous_10)","decl":{"start":{"line":56,"column":17},"end":{"line":56,"column":18}},"loc":{"start":{"line":57,"column":4},"end":{"line":57,"column":60}},"line":57},"11":{"name":"(anonymous_11)","decl":{"start":{"line":58,"column":21},"end":{"line":58,"column":22}},"loc":{"start":{"line":59,"column":4},"end":{"line":59,"column":68}},"line":59},"12":{"name":"(anonymous_12)","decl":{"start":{"line":60,"column":21},"end":{"line":60,"column":22}},"loc":{"start":{"line":60,"column":47},"end":{"line":60,"column":94}},"line":60},"13":{"name":"(anonymous_13)","decl":{"start":{"line":61,"column":14},"end":{"line":61,"column":15}},"loc":{"start":{"line":61,"column":22},"end":{"line":61,"column":81}},"line":61},"14":{"name":"(anonymous_14)","decl":{"start":{"line":64,"column":35},"end":{"line":64,"column":36}},"loc":{"start":{"line":64,"column":59},"end":{"line":64,"column":71}},"line":64},"15":{"name":"(anonymous_15)","decl":{"start":{"line":66,"column":23},"end":{"line":66,"column":24}},"loc":{"start":{"line":66,"column":62},"end":{"line":73,"column":1}},"line":66},"16":{"name":"(anonymous_16)","decl":{"start":{"line":72,"column":55},"end":{"line":72,"column":56}},"loc":{"start":{"line":72,"column":63},"end":{"line":72,"column":88}},"line":72}},"branchMap":{"0":{"loc":{"start":{"line":15,"column":6},"end":{"line":20,"column":7}},"type":"switch","locations":[{"start":{"line":16,"column":8},"end":{"line":17,"column":52}},{"start":{"line":18,"column":8},"end":{"line":19,"column":47}}],"line":15},"1":{"loc":{"start":{"line":26,"column":6},"end":{"line":31,"column":7}},"type":"switch","locations":[{"start":{"line":27,"column":8},"end":{"line":28,"column":33}},{"start":{"line":29,"column":8},"end":{"line":30,"column":24}}],"line":26},"2":{"loc":{"start":{"line":38,"column":4},"end":{"line":39,"column":39}},"type":"binary-expr","locations":[{"start":{"line":38,"column":4},"end":{"line":38,"column":67}},{"start":{"line":39,"column":4},"end":{"line":39,"column":39}}],"line":38},"3":{"loc":{"start":{"line":47,"column":4},"end":{"line":48,"column":64}},"type":"binary-expr","locations":[{"start":{"line":47,"column":4},"end":{"line":47,"column":48}},{"start":{"line":48,"column":4},"end":{"line":48,"column":64}}],"line":47},"4":{"loc":{"start":{"line":54,"column":42},"end":{"line":54,"column":70}},"type":"cond-expr","locations":[{"start":{"line":54,"column":55},"end":{"line":54,"column":61}},{"start":{"line":54,"column":64},"end":{"line":54,"column":70}}],"line":54},"5":{"loc":{"start":{"line":55,"column":24},"end":{"line":55,"column":39}},"type":"default-arg","locations":[{"start":{"line":55,"column":33},"end":{"line":55,"column":39}}],"line":55},"6":{"loc":{"start":{"line":56,"column":18},"end":{"line":56,"column":35}},"type":"default-arg","locations":[{"start":{"line":56,"column":27},"end":{"line":56,"column":35}}],"line":56},"7":{"loc":{"start":{"line":56,"column":37},"end":{"line":56,"column":56}},"type":"default-arg","locations":[{"start":{"line":56,"column":54},"end":{"line":56,"column":56}}],"line":56},"8":{"loc":{"start":{"line":58,"column":22},"end":{"line":58,"column":36}},"type":"default-arg","locations":[{"start":{"line":58,"column":30},"end":{"line":58,"column":36}}],"line":58},"9":{"loc":{"start":{"line":60,"column":22},"end":{"line":60,"column":36}},"type":"default-arg","locations":[{"start":{"line":60,"column":30},"end":{"line":60,"column":36}}],"line":60},"10":{"loc":{"start":{"line":66,"column":42},"end":{"line":66,"column":57}},"type":"default-arg","locations":[{"start":{"line":66,"column":52},"end":{"line":66,"column":57}}],"line":66},"11":{"loc":{"start":{"line":67,"column":2},"end":{"line":70,"column":3}},"type":"if","locations":[{"start":{"line":67,"column":2},"end":{"line":70,"column":3}},{"start":{},"end":{}}],"line":67}},"s":{"0":4,"1":2,"2":3,"3":3,"4":2,"5":1,"6":3,"7":2,"8":1,"9":4,"10":9,"11":20,"12":4,"13":39,"14":39,"15":129,"16":4,"17":28,"18":30,"19":13,"20":0,"21":0,"22":2,"23":4,"24":3,"25":4,"26":3,"27":1,"28":1,"29":2,"30":2},"f":{"0":2,"1":3,"2":3,"3":3,"4":9,"5":20,"6":39,"7":129,"8":28,"9":30,"10":13,"11":0,"12":0,"13":2,"14":3,"15":3,"16":2},"b":{"0":[2,1],"1":[2,1],"2":[9,1],"3":[39,14],"4":[16,12],"5":[15],"6":[1],"7":[9],"8":[0],"9":[0],"10":[2],"11":[1,2]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"61b9ae5118f825bda3620a4721d90363b2504da4"} -,"C:\\Users\\nick-\\repos\\mypets\\back\\src\\graphql\\resolvers\\Mutations.js": {"path":"C:\\Users\\nick-\\repos\\mypets\\back\\src\\graphql\\resolvers\\Mutations.js","statementMap":{"0":{"start":{"line":12,"column":18},"end":{"line":162,"column":1}},"1":{"start":{"line":14,"column":4},"end":{"line":21,"column":5}},"2":{"start":{"line":15,"column":25},"end":{"line":15,"column":83}},"3":{"start":{"line":16,"column":20},"end":{"line":16,"column":56}},"4":{"start":{"line":18,"column":6},"end":{"line":18,"column":46}},"5":{"start":{"line":20,"column":6},"end":{"line":20,"column":88}},"6":{"start":{"line":24,"column":4},"end":{"line":36,"column":5}},"7":{"start":{"line":25,"column":28},"end":{"line":28,"column":8}},"8":{"start":{"line":30,"column":6},"end":{"line":30,"column":32}},"9":{"start":{"line":31,"column":20},"end":{"line":31,"column":59}},"10":{"start":{"line":33,"column":6},"end":{"line":33,"column":49}},"11":{"start":{"line":35,"column":6},"end":{"line":35,"column":88}},"12":{"start":{"line":39,"column":4},"end":{"line":41,"column":5}},"13":{"start":{"line":40,"column":6},"end":{"line":40,"column":82}},"14":{"start":{"line":43,"column":4},"end":{"line":45,"column":5}},"15":{"start":{"line":44,"column":6},"end":{"line":44,"column":80}},"16":{"start":{"line":47,"column":4},"end":{"line":54,"column":5}},"17":{"start":{"line":48,"column":6},"end":{"line":48,"column":81}},"18":{"start":{"line":48,"column":46},"end":{"line":48,"column":79}},"19":{"start":{"line":49,"column":6},"end":{"line":49,"column":29}},"20":{"start":{"line":51,"column":6},"end":{"line":51,"column":32}},"21":{"start":{"line":53,"column":6},"end":{"line":53,"column":88}},"22":{"start":{"line":57,"column":4},"end":{"line":59,"column":5}},"23":{"start":{"line":58,"column":6},"end":{"line":58,"column":82}},"24":{"start":{"line":61,"column":4},"end":{"line":63,"column":5}},"25":{"start":{"line":62,"column":6},"end":{"line":62,"column":80}},"26":{"start":{"line":65,"column":4},"end":{"line":67,"column":5}},"27":{"start":{"line":66,"column":6},"end":{"line":66,"column":70}},"28":{"start":{"line":69,"column":4},"end":{"line":79,"column":5}},"29":{"start":{"line":70,"column":6},"end":{"line":70,"column":79}},"30":{"start":{"line":71,"column":6},"end":{"line":71,"column":53}},"31":{"start":{"line":73,"column":6},"end":{"line":73,"column":29}},"32":{"start":{"line":75,"column":6},"end":{"line":75,"column":17}},"33":{"start":{"line":77,"column":23},"end":{"line":77,"column":99}},"34":{"start":{"line":78,"column":6},"end":{"line":78,"column":71}},"35":{"start":{"line":82,"column":4},"end":{"line":84,"column":5}},"36":{"start":{"line":83,"column":6},"end":{"line":83,"column":82}},"37":{"start":{"line":86,"column":4},"end":{"line":92,"column":5}},"38":{"start":{"line":87,"column":6},"end":{"line":87,"column":84}},"39":{"start":{"line":87,"column":61},"end":{"line":87,"column":83}},"40":{"start":{"line":88,"column":6},"end":{"line":88,"column":29}},"41":{"start":{"line":89,"column":6},"end":{"line":89,"column":17}},"42":{"start":{"line":91,"column":6},"end":{"line":91,"column":88}},"43":{"start":{"line":95,"column":4},"end":{"line":97,"column":5}},"44":{"start":{"line":96,"column":6},"end":{"line":96,"column":82}},"45":{"start":{"line":99,"column":4},"end":{"line":101,"column":5}},"46":{"start":{"line":100,"column":6},"end":{"line":100,"column":80}},"47":{"start":{"line":103,"column":30},"end":{"line":103,"column":97}},"48":{"start":{"line":105,"column":4},"end":{"line":110,"column":5}},"49":{"start":{"line":106,"column":6},"end":{"line":109,"column":7}},"50":{"start":{"line":112,"column":20},"end":{"line":112,"column":73}},"51":{"start":{"line":114,"column":4},"end":{"line":125,"column":5}},"52":{"start":{"line":115,"column":27},"end":{"line":118,"column":8}},"53":{"start":{"line":120,"column":6},"end":{"line":120,"column":31}},"54":{"start":{"line":122,"column":6},"end":{"line":122,"column":34}},"55":{"start":{"line":124,"column":6},"end":{"line":124,"column":87}},"56":{"start":{"line":128,"column":4},"end":{"line":130,"column":5}},"57":{"start":{"line":129,"column":6},"end":{"line":129,"column":82}},"58":{"start":{"line":132,"column":4},"end":{"line":134,"column":5}},"59":{"start":{"line":133,"column":6},"end":{"line":133,"column":80}},"60":{"start":{"line":136,"column":30},"end":{"line":136,"column":97}},"61":{"start":{"line":138,"column":4},"end":{"line":143,"column":5}},"62":{"start":{"line":139,"column":6},"end":{"line":142,"column":7}},"63":{"start":{"line":145,"column":4},"end":{"line":150,"column":5}},"64":{"start":{"line":146,"column":36},"end":{"line":146,"column":43}},"65":{"start":{"line":147,"column":6},"end":{"line":147,"column":81}},"66":{"start":{"line":149,"column":6},"end":{"line":149,"column":87}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":13,"column":13},"end":{"line":13,"column":14}},"loc":{"start":{"line":13,"column":47},"end":{"line":22,"column":3}},"line":13},"1":{"name":"(anonymous_1)","decl":{"start":{"line":23,"column":14},"end":{"line":23,"column":15}},"loc":{"start":{"line":23,"column":40},"end":{"line":37,"column":3}},"line":23},"2":{"name":"(anonymous_2)","decl":{"start":{"line":38,"column":14},"end":{"line":38,"column":15}},"loc":{"start":{"line":38,"column":55},"end":{"line":55,"column":3}},"line":38},"3":{"name":"(anonymous_3)","decl":{"start":{"line":48,"column":38},"end":{"line":48,"column":39}},"loc":{"start":{"line":48,"column":46},"end":{"line":48,"column":79}},"line":48},"4":{"name":"(anonymous_4)","decl":{"start":{"line":56,"column":14},"end":{"line":56,"column":15}},"loc":{"start":{"line":56,"column":49},"end":{"line":80,"column":3}},"line":56},"5":{"name":"(anonymous_5)","decl":{"start":{"line":81,"column":10},"end":{"line":81,"column":11}},"loc":{"start":{"line":81,"column":50},"end":{"line":93,"column":3}},"line":81},"6":{"name":"(anonymous_6)","decl":{"start":{"line":87,"column":51},"end":{"line":87,"column":52}},"loc":{"start":{"line":87,"column":61},"end":{"line":87,"column":83}},"line":87},"7":{"name":"(anonymous_7)","decl":{"start":{"line":94,"column":13},"end":{"line":94,"column":14}},"loc":{"start":{"line":94,"column":55},"end":{"line":126,"column":3}},"line":94},"8":{"name":"(anonymous_8)","decl":{"start":{"line":127,"column":13},"end":{"line":127,"column":14}},"loc":{"start":{"line":127,"column":55},"end":{"line":151,"column":3}},"line":127}},"branchMap":{"0":{"loc":{"start":{"line":39,"column":4},"end":{"line":41,"column":5}},"type":"if","locations":[{"start":{"line":39,"column":4},"end":{"line":41,"column":5}},{"start":{},"end":{}}],"line":39},"1":{"loc":{"start":{"line":43,"column":4},"end":{"line":45,"column":5}},"type":"if","locations":[{"start":{"line":43,"column":4},"end":{"line":45,"column":5}},{"start":{},"end":{}}],"line":43},"2":{"loc":{"start":{"line":57,"column":4},"end":{"line":59,"column":5}},"type":"if","locations":[{"start":{"line":57,"column":4},"end":{"line":59,"column":5}},{"start":{},"end":{}}],"line":57},"3":{"loc":{"start":{"line":61,"column":4},"end":{"line":63,"column":5}},"type":"if","locations":[{"start":{"line":61,"column":4},"end":{"line":63,"column":5}},{"start":{},"end":{}}],"line":61},"4":{"loc":{"start":{"line":65,"column":4},"end":{"line":67,"column":5}},"type":"if","locations":[{"start":{"line":65,"column":4},"end":{"line":67,"column":5}},{"start":{},"end":{}}],"line":65},"5":{"loc":{"start":{"line":77,"column":23},"end":{"line":77,"column":99}},"type":"cond-expr","locations":[{"start":{"line":77,"column":60},"end":{"line":77,"column":79}},{"start":{"line":77,"column":82},"end":{"line":77,"column":99}}],"line":77},"6":{"loc":{"start":{"line":82,"column":4},"end":{"line":84,"column":5}},"type":"if","locations":[{"start":{"line":82,"column":4},"end":{"line":84,"column":5}},{"start":{},"end":{}}],"line":82},"7":{"loc":{"start":{"line":82,"column":8},"end":{"line":82,"column":29}},"type":"binary-expr","locations":[{"start":{"line":82,"column":8},"end":{"line":82,"column":19}},{"start":{"line":82,"column":23},"end":{"line":82,"column":29}}],"line":82},"8":{"loc":{"start":{"line":95,"column":4},"end":{"line":97,"column":5}},"type":"if","locations":[{"start":{"line":95,"column":4},"end":{"line":97,"column":5}},{"start":{},"end":{}}],"line":95},"9":{"loc":{"start":{"line":99,"column":4},"end":{"line":101,"column":5}},"type":"if","locations":[{"start":{"line":99,"column":4},"end":{"line":101,"column":5}},{"start":{},"end":{}}],"line":99},"10":{"loc":{"start":{"line":105,"column":4},"end":{"line":110,"column":5}},"type":"if","locations":[{"start":{"line":105,"column":4},"end":{"line":110,"column":5}},{"start":{},"end":{}}],"line":105},"11":{"loc":{"start":{"line":128,"column":4},"end":{"line":130,"column":5}},"type":"if","locations":[{"start":{"line":128,"column":4},"end":{"line":130,"column":5}},{"start":{},"end":{}}],"line":128},"12":{"loc":{"start":{"line":132,"column":4},"end":{"line":134,"column":5}},"type":"if","locations":[{"start":{"line":132,"column":4},"end":{"line":134,"column":5}},{"start":{},"end":{}}],"line":132},"13":{"loc":{"start":{"line":138,"column":4},"end":{"line":143,"column":5}},"type":"if","locations":[{"start":{"line":138,"column":4},"end":{"line":143,"column":5}},{"start":{},"end":{}}],"line":138},"14":{"loc":{"start":{"line":147,"column":13},"end":{"line":147,"column":81}},"type":"binary-expr","locations":[{"start":{"line":147,"column":14},"end":{"line":147,"column":72}},{"start":{"line":147,"column":77},"end":{"line":147,"column":81}}],"line":147}},"s":{"0":3,"1":3,"2":3,"3":1,"4":1,"5":2,"6":18,"7":18,"8":17,"9":16,"10":16,"11":2,"12":3,"13":1,"14":2,"15":1,"16":1,"17":1,"18":2,"19":1,"20":1,"21":0,"22":6,"23":1,"24":5,"25":1,"26":4,"27":1,"28":3,"29":3,"30":2,"31":2,"32":1,"33":2,"34":2,"35":2,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":0,"43":21,"44":1,"45":20,"46":13,"47":7,"48":7,"49":1,"50":6,"51":6,"52":6,"53":6,"54":6,"55":0,"56":13,"57":1,"58":12,"59":10,"60":2,"61":2,"62":1,"63":1,"64":1,"65":1,"66":0},"f":{"0":3,"1":18,"2":3,"3":2,"4":6,"5":2,"6":1,"7":21,"8":13},"b":{"0":[1,2],"1":[1,1],"2":[1,5],"3":[1,4],"4":[1,3],"5":[1,1],"6":[1,1],"7":[2,1],"8":[1,20],"9":[13,7],"10":[1,6],"11":[1,12],"12":[10,2],"13":[1,1],"14":[1,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"2d9cf75dc2aea5b3feac3079e528ea5e63233532"} -,"C:\\Users\\nick-\\repos\\mypets\\back\\src\\graphql\\resolvers\\Queries.js": {"path":"C:\\Users\\nick-\\repos\\mypets\\back\\src\\graphql\\resolvers\\Queries.js","statementMap":{"0":{"start":{"line":9,"column":16},"end":{"line":39,"column":1}},"1":{"start":{"line":10,"column":52},"end":{"line":15,"column":3}},"2":{"start":{"line":16,"column":27},"end":{"line":16,"column":93}},"3":{"start":{"line":16,"column":74},"end":{"line":16,"column":91}},"4":{"start":{"line":17,"column":25},"end":{"line":17,"column":89}},"5":{"start":{"line":17,"column":70},"end":{"line":17,"column":87}},"6":{"start":{"line":19,"column":4},"end":{"line":21,"column":5}},"7":{"start":{"line":20,"column":6},"end":{"line":20,"column":82}},"8":{"start":{"line":23,"column":20},"end":{"line":23,"column":73}},"9":{"start":{"line":24,"column":4},"end":{"line":24,"column":40}},"10":{"start":{"line":27,"column":4},"end":{"line":29,"column":5}},"11":{"start":{"line":28,"column":6},"end":{"line":28,"column":82}},"12":{"start":{"line":31,"column":23},"end":{"line":31,"column":53}},"13":{"start":{"line":33,"column":4},"end":{"line":35,"column":5}},"14":{"start":{"line":34,"column":6},"end":{"line":34,"column":78}},"15":{"start":{"line":37,"column":4},"end":{"line":37,"column":21}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":10,"column":11},"end":{"line":10,"column":12}},"loc":{"start":{"line":10,"column":52},"end":{"line":15,"column":3}},"line":10},"1":{"name":"(anonymous_1)","decl":{"start":{"line":16,"column":15},"end":{"line":16,"column":16}},"loc":{"start":{"line":16,"column":27},"end":{"line":16,"column":93}},"line":16},"2":{"name":"(anonymous_2)","decl":{"start":{"line":16,"column":54},"end":{"line":16,"column":55}},"loc":{"start":{"line":16,"column":74},"end":{"line":16,"column":91}},"line":16},"3":{"name":"(anonymous_3)","decl":{"start":{"line":17,"column":13},"end":{"line":17,"column":14}},"loc":{"start":{"line":17,"column":25},"end":{"line":17,"column":89}},"line":17},"4":{"name":"(anonymous_4)","decl":{"start":{"line":17,"column":50},"end":{"line":17,"column":51}},"loc":{"start":{"line":17,"column":70},"end":{"line":17,"column":87}},"line":17},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":13},"end":{"line":18,"column":14}},"loc":{"start":{"line":18,"column":46},"end":{"line":25,"column":3}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":26,"column":10},"end":{"line":26,"column":11}},"loc":{"start":{"line":26,"column":47},"end":{"line":38,"column":3}},"line":26}},"branchMap":{"0":{"loc":{"start":{"line":19,"column":4},"end":{"line":21,"column":5}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":21,"column":5}},{"start":{},"end":{}}],"line":19},"1":{"loc":{"start":{"line":27,"column":4},"end":{"line":29,"column":5}},"type":"if","locations":[{"start":{"line":27,"column":4},"end":{"line":29,"column":5}},{"start":{},"end":{}}],"line":27},"2":{"loc":{"start":{"line":33,"column":4},"end":{"line":35,"column":5}},"type":"if","locations":[{"start":{"line":33,"column":4},"end":{"line":35,"column":5}},{"start":{},"end":{}}],"line":33}},"s":{"0":3,"1":1,"2":5,"3":10,"4":5,"5":25,"6":5,"7":1,"8":4,"9":4,"10":3,"11":1,"12":2,"13":2,"14":1,"15":1},"f":{"0":1,"1":5,"2":10,"3":5,"4":25,"5":5,"6":3},"b":{"0":[1,4],"1":[1,2],"2":[1,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"c7f2144920c7d7e97940471ab5ff65b2759785ec"} -,"C:\\Users\\nick-\\repos\\mypets\\back\\src\\graphql\\resolvers\\Relationships.js": {"path":"C:\\Users\\nick-\\repos\\mypets\\back\\src\\graphql\\resolvers\\Relationships.js","statementMap":{"0":{"start":{"line":9,"column":22},"end":{"line":22,"column":1}},"1":{"start":{"line":12,"column":19},"end":{"line":12,"column":75}},"2":{"start":{"line":13,"column":6},"end":{"line":13,"column":37}},"3":{"start":{"line":17,"column":30},"end":{"line":17,"column":55}},"4":{"start":{"line":18,"column":36},"end":{"line":18,"column":73}},"5":{"start":{"line":19,"column":42},"end":{"line":19,"column":74}},"6":{"start":{"line":20,"column":40},"end":{"line":20,"column":71}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":11,"column":10},"end":{"line":11,"column":11}},"loc":{"start":{"line":11,"column":34},"end":{"line":14,"column":5}},"line":11},"1":{"name":"(anonymous_1)","decl":{"start":{"line":17,"column":10},"end":{"line":17,"column":11}},"loc":{"start":{"line":17,"column":30},"end":{"line":17,"column":55}},"line":17},"2":{"name":"(anonymous_2)","decl":{"start":{"line":18,"column":13},"end":{"line":18,"column":14}},"loc":{"start":{"line":18,"column":36},"end":{"line":18,"column":73}},"line":18},"3":{"name":"(anonymous_3)","decl":{"start":{"line":19,"column":16},"end":{"line":19,"column":17}},"loc":{"start":{"line":19,"column":42},"end":{"line":19,"column":74}},"line":19},"4":{"name":"(anonymous_4)","decl":{"start":{"line":20,"column":15},"end":{"line":20,"column":16}},"loc":{"start":{"line":20,"column":40},"end":{"line":20,"column":71}},"line":20}},"branchMap":{"0":{"loc":{"start":{"line":12,"column":19},"end":{"line":12,"column":75}},"type":"cond-expr","locations":[{"start":{"line":12,"column":30},"end":{"line":12,"column":68}},{"start":{"line":12,"column":71},"end":{"line":12,"column":75}}],"line":12}},"s":{"0":1,"1":2,"2":2,"3":1,"4":1,"5":1,"6":1},"f":{"0":2,"1":1,"2":1,"3":1,"4":1},"b":{"0":[1,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"e3f6cc1ddebcb2967a93ebb5b3a1c6270523a62a"} -,"C:\\Users\\nick-\\repos\\mypets\\back\\src\\server\\app.js": {"path":"C:\\Users\\nick-\\repos\\mypets\\back\\src\\server\\app.js","statementMap":{"0":{"start":{"line":8,"column":12},"end":{"line":8,"column":29}},"1":{"start":{"line":10,"column":19},"end":{"line":10,"column":55}},"2":{"start":{"line":11,"column":18},"end":{"line":11,"column":63}},"3":{"start":{"line":13,"column":0},"end":{"line":13,"column":29}},"4":{"start":{"line":14,"column":0},"end":{"line":14,"column":27}},"5":{"start":{"line":16,"column":0},"end":{"line":16,"column":35}},"6":{"start":{"line":18,"column":0},"end":{"line":29,"column":2}},"7":{"start":{"line":20,"column":84},"end":{"line":20,"column":95}},"8":{"start":{"line":22,"column":2},"end":{"line":28,"column":4}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":18,"column":13},"end":{"line":18,"column":14}},"loc":{"start":{"line":18,"column":30},"end":{"line":29,"column":1}},"line":18}},"branchMap":{},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0},"f":{"0":0},"b":{}} -,"C:\\Users\\nick-\\repos\\mypets\\back\\src\\server\\server.js": {"path":"C:\\Users\\nick-\\repos\\mypets\\back\\src\\server\\server.js","statementMap":{"0":{"start":{"line":16,"column":15},"end":{"line":35,"column":2}},"1":{"start":{"line":20,"column":18},"end":{"line":22,"column":12}},"2":{"start":{"line":24,"column":4},"end":{"line":24,"column":22}},"3":{"start":{"line":24,"column":16},"end":{"line":24,"column":22}},"4":{"start":{"line":26,"column":25},"end":{"line":26,"column":66}},"5":{"start":{"line":27,"column":23},"end":{"line":27,"column":91}},"6":{"start":{"line":29,"column":4},"end":{"line":31,"column":5}},"7":{"start":{"line":30,"column":6},"end":{"line":30,"column":82}},"8":{"start":{"line":33,"column":4},"end":{"line":33,"column":32}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":19,"column":11},"end":{"line":19,"column":12}},"loc":{"start":{"line":19,"column":30},"end":{"line":34,"column":3}},"line":19}},"branchMap":{"0":{"loc":{"start":{"line":20,"column":18},"end":{"line":22,"column":12}},"type":"cond-expr","locations":[{"start":{"line":21,"column":8},"end":{"line":21,"column":59}},{"start":{"line":22,"column":8},"end":{"line":22,"column":12}}],"line":20},"1":{"loc":{"start":{"line":24,"column":4},"end":{"line":24,"column":22}},"type":"if","locations":[{"start":{"line":24,"column":4},"end":{"line":24,"column":22}},{"start":{},"end":{}}],"line":24},"2":{"loc":{"start":{"line":29,"column":4},"end":{"line":31,"column":5}},"type":"if","locations":[{"start":{"line":29,"column":4},"end":{"line":31,"column":5}},{"start":{},"end":{}}],"line":29},"3":{"loc":{"start":{"line":29,"column":8},"end":{"line":29,"column":29}},"type":"binary-expr","locations":[{"start":{"line":29,"column":8},"end":{"line":29,"column":19}},{"start":{"line":29,"column":23},"end":{"line":29,"column":29}}],"line":29}},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0},"f":{"0":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0]}} +{"C:\\Users\\nick-\\repos\\pets\\back\\src\\index.js": {"path":"C:\\Users\\nick-\\repos\\pets\\back\\src\\index.js","statementMap":{"0":{"start":{"line":6,"column":17},"end":{"line":6,"column":28}},"1":{"start":{"line":8,"column":20},"end":{"line":13,"column":1}},"2":{"start":{"line":9,"column":2},"end":{"line":9,"column":22}},"3":{"start":{"line":10,"column":2},"end":{"line":10,"column":33}},"4":{"start":{"line":12,"column":2},"end":{"line":12,"column":78}},"5":{"start":{"line":12,"column":25},"end":{"line":12,"column":77}},"6":{"start":{"line":15,"column":0},"end":{"line":15,"column":13}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":8,"column":20},"end":{"line":8,"column":21}},"loc":{"start":{"line":8,"column":32},"end":{"line":13,"column":1}},"line":8},"1":{"name":"(anonymous_1)","decl":{"start":{"line":12,"column":19},"end":{"line":12,"column":20}},"loc":{"start":{"line":12,"column":25},"end":{"line":12,"column":77}},"line":12}},"branchMap":{},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0},"f":{"0":0,"1":0},"b":{}} +,"C:\\Users\\nick-\\repos\\pets\\back\\src\\db\\mongoose.js": {"path":"C:\\Users\\nick-\\repos\\pets\\back\\src\\db\\mongoose.js","statementMap":{"0":{"start":{"line":3,"column":18},"end":{"line":6,"column":2}}},"fnMap":{},"branchMap":{},"s":{"0":3},"f":{},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"445d3d4de004897b6c3d5b0575c3b1a1c8d70c34"} +,"C:\\Users\\nick-\\repos\\pets\\back\\src\\functions\\dbOps.js": {"path":"C:\\Users\\nick-\\repos\\pets\\back\\src\\functions\\dbOps.js","statementMap":{"0":{"start":{"line":9,"column":15},"end":{"line":14,"column":1}},"1":{"start":{"line":16,"column":29},"end":{"line":21,"column":1}},"2":{"start":{"line":17,"column":15},"end":{"line":17,"column":72}},"3":{"start":{"line":18,"column":2},"end":{"line":20,"column":52}},"4":{"start":{"line":19,"column":66},"end":{"line":19,"column":74}},"5":{"start":{"line":23,"column":26},"end":{"line":23,"column":84}},"6":{"start":{"line":23,"column":41},"end":{"line":23,"column":84}},"7":{"start":{"line":25,"column":30},"end":{"line":26,"column":75}},"8":{"start":{"line":26,"column":2},"end":{"line":26,"column":75}},"9":{"start":{"line":26,"column":51},"end":{"line":26,"column":74}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":16,"column":29},"end":{"line":16,"column":30}},"loc":{"start":{"line":16,"column":60},"end":{"line":21,"column":1}},"line":16},"1":{"name":"(anonymous_1)","decl":{"start":{"line":19,"column":57},"end":{"line":19,"column":58}},"loc":{"start":{"line":19,"column":66},"end":{"line":19,"column":74}},"line":19},"2":{"name":"(anonymous_2)","decl":{"start":{"line":23,"column":26},"end":{"line":23,"column":27}},"loc":{"start":{"line":23,"column":41},"end":{"line":23,"column":84}},"line":23},"3":{"name":"(anonymous_3)","decl":{"start":{"line":25,"column":30},"end":{"line":25,"column":31}},"loc":{"start":{"line":26,"column":2},"end":{"line":26,"column":75}},"line":26},"4":{"name":"(anonymous_4)","decl":{"start":{"line":26,"column":36},"end":{"line":26,"column":37}},"loc":{"start":{"line":26,"column":51},"end":{"line":26,"column":74}},"line":26}},"branchMap":{"0":{"loc":{"start":{"line":16,"column":43},"end":{"line":16,"column":55}},"type":"default-arg","locations":[{"start":{"line":16,"column":49},"end":{"line":16,"column":55}}],"line":16},"1":{"loc":{"start":{"line":17,"column":15},"end":{"line":17,"column":72}},"type":"cond-expr","locations":[{"start":{"line":17,"column":39},"end":{"line":17,"column":67}},{"start":{"line":17,"column":70},"end":{"line":17,"column":72}}],"line":17},"2":{"loc":{"start":{"line":18,"column":2},"end":{"line":20,"column":52}},"type":"cond-expr","locations":[{"start":{"line":19,"column":6},"end":{"line":19,"column":77}},{"start":{"line":20,"column":6},"end":{"line":20,"column":52}}],"line":18}},"s":{"0":3,"1":3,"2":6,"3":6,"4":21,"5":3,"6":31,"7":3,"8":3,"9":12},"f":{"0":6,"1":21,"2":31,"3":3,"4":12},"b":{"0":[6],"1":[6,0],"2":[6,0]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"48479da0c459adb5564f1c31350605d1f3bef587"} +,"C:\\Users\\nick-\\repos\\pets\\back\\src\\functions\\encrypt.js": {"path":"C:\\Users\\nick-\\repos\\pets\\back\\src\\functions\\encrypt.js","statementMap":{"0":{"start":{"line":3,"column":27},"end":{"line":7,"column":1}},"1":{"start":{"line":4,"column":2},"end":{"line":6,"column":10}},"2":{"start":{"line":9,"column":27},"end":{"line":15,"column":1}},"3":{"start":{"line":10,"column":2},"end":{"line":14,"column":10}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":27},"end":{"line":3,"column":28}},"loc":{"start":{"line":3,"column":35},"end":{"line":7,"column":1}},"line":3},"1":{"name":"(anonymous_1)","decl":{"start":{"line":9,"column":27},"end":{"line":9,"column":28}},"loc":{"start":{"line":9,"column":35},"end":{"line":15,"column":1}},"line":9}},"branchMap":{"0":{"loc":{"start":{"line":4,"column":9},"end":{"line":6,"column":10}},"type":"cond-expr","locations":[{"start":{"line":5,"column":6},"end":{"line":5,"column":89}},{"start":{"line":6,"column":6},"end":{"line":6,"column":10}}],"line":4},"1":{"loc":{"start":{"line":10,"column":9},"end":{"line":14,"column":10}},"type":"cond-expr","locations":[{"start":{"line":11,"column":6},"end":{"line":13,"column":36}},{"start":{"line":14,"column":6},"end":{"line":14,"column":10}}],"line":10}},"s":{"0":4,"1":14,"2":4,"3":28},"f":{"0":14,"1":28},"b":{"0":[13,1],"1":[27,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"a983cd0c38ce2ba69ad138646b9c0f2d892fdc27"} +,"C:\\Users\\nick-\\repos\\pets\\back\\src\\functions\\parsers.js": {"path":"C:\\Users\\nick-\\repos\\pets\\back\\src\\functions\\parsers.js","statementMap":{"0":{"start":{"line":4,"column":21},"end":{"line":34,"column":1}},"1":{"start":{"line":8,"column":6},"end":{"line":10,"column":19}},"2":{"start":{"line":9,"column":20},"end":{"line":9,"column":39}},"3":{"start":{"line":15,"column":6},"end":{"line":20,"column":7}},"4":{"start":{"line":17,"column":10},"end":{"line":17,"column":52}},"5":{"start":{"line":19,"column":10},"end":{"line":19,"column":47}},"6":{"start":{"line":26,"column":6},"end":{"line":31,"column":7}},"7":{"start":{"line":28,"column":10},"end":{"line":28,"column":33}},"8":{"start":{"line":30,"column":10},"end":{"line":30,"column":24}},"9":{"start":{"line":36,"column":26},"end":{"line":41,"column":1}},"10":{"start":{"line":37,"column":2},"end":{"line":40,"column":3}},"11":{"start":{"line":38,"column":36},"end":{"line":38,"column":47}},"12":{"start":{"line":43,"column":35},"end":{"line":50,"column":1}},"13":{"start":{"line":44,"column":23},"end":{"line":44,"column":39}},"14":{"start":{"line":46,"column":2},"end":{"line":49,"column":3}},"15":{"start":{"line":48,"column":33},"end":{"line":48,"column":63}},"16":{"start":{"line":52,"column":29},"end":{"line":62,"column":1}},"17":{"start":{"line":54,"column":4},"end":{"line":54,"column":97}},"18":{"start":{"line":55,"column":44},"end":{"line":55,"column":96}},"19":{"start":{"line":57,"column":4},"end":{"line":57,"column":60}},"20":{"start":{"line":59,"column":4},"end":{"line":59,"column":68}},"21":{"start":{"line":60,"column":47},"end":{"line":60,"column":94}},"22":{"start":{"line":61,"column":22},"end":{"line":61,"column":81}},"23":{"start":{"line":64,"column":35},"end":{"line":64,"column":72}},"24":{"start":{"line":64,"column":59},"end":{"line":64,"column":71}},"25":{"start":{"line":66,"column":23},"end":{"line":73,"column":1}},"26":{"start":{"line":67,"column":2},"end":{"line":70,"column":3}},"27":{"start":{"line":68,"column":24},"end":{"line":68,"column":57}},"28":{"start":{"line":69,"column":4},"end":{"line":69,"column":43}},"29":{"start":{"line":72,"column":2},"end":{"line":72,"column":89}},"30":{"start":{"line":72,"column":63},"end":{"line":72,"column":88}},"31":{"start":{"line":75,"column":32},"end":{"line":78,"column":8}},"32":{"start":{"line":76,"column":2},"end":{"line":78,"column":8}},"33":{"start":{"line":77,"column":50},"end":{"line":77,"column":85}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":7,"column":8},"end":{"line":7,"column":9}},"loc":{"start":{"line":8,"column":6},"end":{"line":10,"column":19}},"line":8},"1":{"name":"(anonymous_1)","decl":{"start":{"line":9,"column":13},"end":{"line":9,"column":14}},"loc":{"start":{"line":9,"column":20},"end":{"line":9,"column":39}},"line":9},"2":{"name":"(anonymous_2)","decl":{"start":{"line":14,"column":8},"end":{"line":14,"column":9}},"loc":{"start":{"line":14,"column":30},"end":{"line":21,"column":5}},"line":14},"3":{"name":"(anonymous_3)","decl":{"start":{"line":25,"column":8},"end":{"line":25,"column":9}},"loc":{"start":{"line":25,"column":25},"end":{"line":32,"column":5}},"line":25},"4":{"name":"(anonymous_4)","decl":{"start":{"line":36,"column":26},"end":{"line":36,"column":27}},"loc":{"start":{"line":36,"column":45},"end":{"line":41,"column":1}},"line":36},"5":{"name":"(anonymous_5)","decl":{"start":{"line":38,"column":22},"end":{"line":38,"column":23}},"loc":{"start":{"line":38,"column":36},"end":{"line":38,"column":47}},"line":38},"6":{"name":"(anonymous_6)","decl":{"start":{"line":43,"column":35},"end":{"line":43,"column":36}},"loc":{"start":{"line":43,"column":59},"end":{"line":50,"column":1}},"line":43},"7":{"name":"(anonymous_7)","decl":{"start":{"line":48,"column":23},"end":{"line":48,"column":24}},"loc":{"start":{"line":48,"column":33},"end":{"line":48,"column":63}},"line":48},"8":{"name":"(anonymous_8)","decl":{"start":{"line":53,"column":15},"end":{"line":53,"column":16}},"loc":{"start":{"line":54,"column":4},"end":{"line":54,"column":97}},"line":54},"9":{"name":"(anonymous_9)","decl":{"start":{"line":55,"column":16},"end":{"line":55,"column":17}},"loc":{"start":{"line":55,"column":44},"end":{"line":55,"column":96}},"line":55},"10":{"name":"(anonymous_10)","decl":{"start":{"line":56,"column":17},"end":{"line":56,"column":18}},"loc":{"start":{"line":57,"column":4},"end":{"line":57,"column":60}},"line":57},"11":{"name":"(anonymous_11)","decl":{"start":{"line":58,"column":21},"end":{"line":58,"column":22}},"loc":{"start":{"line":59,"column":4},"end":{"line":59,"column":68}},"line":59},"12":{"name":"(anonymous_12)","decl":{"start":{"line":60,"column":21},"end":{"line":60,"column":22}},"loc":{"start":{"line":60,"column":47},"end":{"line":60,"column":94}},"line":60},"13":{"name":"(anonymous_13)","decl":{"start":{"line":61,"column":14},"end":{"line":61,"column":15}},"loc":{"start":{"line":61,"column":22},"end":{"line":61,"column":81}},"line":61},"14":{"name":"(anonymous_14)","decl":{"start":{"line":64,"column":35},"end":{"line":64,"column":36}},"loc":{"start":{"line":64,"column":59},"end":{"line":64,"column":71}},"line":64},"15":{"name":"(anonymous_15)","decl":{"start":{"line":66,"column":23},"end":{"line":66,"column":24}},"loc":{"start":{"line":66,"column":62},"end":{"line":73,"column":1}},"line":66},"16":{"name":"(anonymous_16)","decl":{"start":{"line":72,"column":55},"end":{"line":72,"column":56}},"loc":{"start":{"line":72,"column":63},"end":{"line":72,"column":88}},"line":72},"17":{"name":"(anonymous_17)","decl":{"start":{"line":75,"column":32},"end":{"line":75,"column":33}},"loc":{"start":{"line":76,"column":2},"end":{"line":78,"column":8}},"line":76},"18":{"name":"(anonymous_18)","decl":{"start":{"line":77,"column":36},"end":{"line":77,"column":37}},"loc":{"start":{"line":77,"column":50},"end":{"line":77,"column":85}},"line":77}},"branchMap":{"0":{"loc":{"start":{"line":15,"column":6},"end":{"line":20,"column":7}},"type":"switch","locations":[{"start":{"line":16,"column":8},"end":{"line":17,"column":52}},{"start":{"line":18,"column":8},"end":{"line":19,"column":47}}],"line":15},"1":{"loc":{"start":{"line":26,"column":6},"end":{"line":31,"column":7}},"type":"switch","locations":[{"start":{"line":27,"column":8},"end":{"line":28,"column":33}},{"start":{"line":29,"column":8},"end":{"line":30,"column":24}}],"line":26},"2":{"loc":{"start":{"line":38,"column":4},"end":{"line":39,"column":39}},"type":"binary-expr","locations":[{"start":{"line":38,"column":4},"end":{"line":38,"column":67}},{"start":{"line":39,"column":4},"end":{"line":39,"column":39}}],"line":38},"3":{"loc":{"start":{"line":47,"column":4},"end":{"line":48,"column":64}},"type":"binary-expr","locations":[{"start":{"line":47,"column":4},"end":{"line":47,"column":48}},{"start":{"line":48,"column":4},"end":{"line":48,"column":64}}],"line":47},"4":{"loc":{"start":{"line":54,"column":42},"end":{"line":54,"column":70}},"type":"cond-expr","locations":[{"start":{"line":54,"column":55},"end":{"line":54,"column":61}},{"start":{"line":54,"column":64},"end":{"line":54,"column":70}}],"line":54},"5":{"loc":{"start":{"line":55,"column":24},"end":{"line":55,"column":39}},"type":"default-arg","locations":[{"start":{"line":55,"column":33},"end":{"line":55,"column":39}}],"line":55},"6":{"loc":{"start":{"line":56,"column":18},"end":{"line":56,"column":35}},"type":"default-arg","locations":[{"start":{"line":56,"column":27},"end":{"line":56,"column":35}}],"line":56},"7":{"loc":{"start":{"line":56,"column":37},"end":{"line":56,"column":56}},"type":"default-arg","locations":[{"start":{"line":56,"column":54},"end":{"line":56,"column":56}}],"line":56},"8":{"loc":{"start":{"line":58,"column":22},"end":{"line":58,"column":36}},"type":"default-arg","locations":[{"start":{"line":58,"column":30},"end":{"line":58,"column":36}}],"line":58},"9":{"loc":{"start":{"line":60,"column":22},"end":{"line":60,"column":36}},"type":"default-arg","locations":[{"start":{"line":60,"column":30},"end":{"line":60,"column":36}}],"line":60},"10":{"loc":{"start":{"line":66,"column":42},"end":{"line":66,"column":57}},"type":"default-arg","locations":[{"start":{"line":66,"column":52},"end":{"line":66,"column":57}}],"line":66},"11":{"loc":{"start":{"line":67,"column":2},"end":{"line":70,"column":3}},"type":"if","locations":[{"start":{"line":67,"column":2},"end":{"line":70,"column":3}},{"start":{},"end":{}}],"line":67},"12":{"loc":{"start":{"line":76,"column":2},"end":{"line":78,"column":8}},"type":"cond-expr","locations":[{"start":{"line":77,"column":6},"end":{"line":77,"column":87}},{"start":{"line":78,"column":6},"end":{"line":78,"column":8}}],"line":76},"13":{"loc":{"start":{"line":77,"column":50},"end":{"line":77,"column":85}},"type":"cond-expr","locations":[{"start":{"line":77,"column":61},"end":{"line":77,"column":78}},{"start":{"line":77,"column":81},"end":{"line":77,"column":85}}],"line":77}},"s":{"0":4,"1":2,"2":3,"3":3,"4":2,"5":1,"6":3,"7":2,"8":1,"9":4,"10":9,"11":20,"12":4,"13":39,"14":39,"15":129,"16":4,"17":28,"18":30,"19":13,"20":0,"21":0,"22":2,"23":4,"24":4,"25":4,"26":4,"27":1,"28":1,"29":3,"30":3,"31":4,"32":1,"33":1},"f":{"0":2,"1":3,"2":3,"3":3,"4":9,"5":20,"6":39,"7":129,"8":28,"9":30,"10":13,"11":0,"12":0,"13":2,"14":4,"15":4,"16":3,"17":1,"18":1},"b":{"0":[2,1],"1":[2,1],"2":[9,1],"3":[39,14],"4":[16,12],"5":[15],"6":[1],"7":[9],"8":[0],"9":[0],"10":[3],"11":[1,3],"12":[1,0],"13":[1,0]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"53151bad0a7bf98d49a57de771eebd4a8e7cd650"} +,"C:\\Users\\nick-\\repos\\pets\\back\\src\\graphql\\resolvers\\Mutations.js": {"path":"C:\\Users\\nick-\\repos\\pets\\back\\src\\graphql\\resolvers\\Mutations.js","statementMap":{"0":{"start":{"line":12,"column":18},"end":{"line":162,"column":1}},"1":{"start":{"line":14,"column":4},"end":{"line":21,"column":5}},"2":{"start":{"line":15,"column":25},"end":{"line":15,"column":83}},"3":{"start":{"line":16,"column":20},"end":{"line":16,"column":56}},"4":{"start":{"line":18,"column":6},"end":{"line":18,"column":46}},"5":{"start":{"line":20,"column":6},"end":{"line":20,"column":88}},"6":{"start":{"line":24,"column":4},"end":{"line":36,"column":5}},"7":{"start":{"line":25,"column":28},"end":{"line":28,"column":8}},"8":{"start":{"line":30,"column":6},"end":{"line":30,"column":32}},"9":{"start":{"line":31,"column":20},"end":{"line":31,"column":59}},"10":{"start":{"line":33,"column":6},"end":{"line":33,"column":49}},"11":{"start":{"line":35,"column":6},"end":{"line":35,"column":88}},"12":{"start":{"line":39,"column":4},"end":{"line":41,"column":5}},"13":{"start":{"line":40,"column":6},"end":{"line":40,"column":82}},"14":{"start":{"line":43,"column":4},"end":{"line":45,"column":5}},"15":{"start":{"line":44,"column":6},"end":{"line":44,"column":80}},"16":{"start":{"line":47,"column":4},"end":{"line":54,"column":5}},"17":{"start":{"line":48,"column":6},"end":{"line":48,"column":81}},"18":{"start":{"line":48,"column":46},"end":{"line":48,"column":79}},"19":{"start":{"line":49,"column":6},"end":{"line":49,"column":29}},"20":{"start":{"line":51,"column":6},"end":{"line":51,"column":32}},"21":{"start":{"line":53,"column":6},"end":{"line":53,"column":88}},"22":{"start":{"line":57,"column":4},"end":{"line":59,"column":5}},"23":{"start":{"line":58,"column":6},"end":{"line":58,"column":82}},"24":{"start":{"line":61,"column":4},"end":{"line":63,"column":5}},"25":{"start":{"line":62,"column":6},"end":{"line":62,"column":80}},"26":{"start":{"line":65,"column":4},"end":{"line":67,"column":5}},"27":{"start":{"line":66,"column":6},"end":{"line":66,"column":70}},"28":{"start":{"line":69,"column":4},"end":{"line":79,"column":5}},"29":{"start":{"line":70,"column":6},"end":{"line":70,"column":79}},"30":{"start":{"line":71,"column":6},"end":{"line":71,"column":53}},"31":{"start":{"line":73,"column":6},"end":{"line":73,"column":29}},"32":{"start":{"line":75,"column":6},"end":{"line":75,"column":17}},"33":{"start":{"line":77,"column":23},"end":{"line":77,"column":99}},"34":{"start":{"line":78,"column":6},"end":{"line":78,"column":71}},"35":{"start":{"line":82,"column":4},"end":{"line":84,"column":5}},"36":{"start":{"line":83,"column":6},"end":{"line":83,"column":82}},"37":{"start":{"line":86,"column":4},"end":{"line":92,"column":5}},"38":{"start":{"line":87,"column":6},"end":{"line":87,"column":84}},"39":{"start":{"line":87,"column":61},"end":{"line":87,"column":83}},"40":{"start":{"line":88,"column":6},"end":{"line":88,"column":29}},"41":{"start":{"line":89,"column":6},"end":{"line":89,"column":17}},"42":{"start":{"line":91,"column":6},"end":{"line":91,"column":88}},"43":{"start":{"line":95,"column":4},"end":{"line":97,"column":5}},"44":{"start":{"line":96,"column":6},"end":{"line":96,"column":82}},"45":{"start":{"line":99,"column":4},"end":{"line":101,"column":5}},"46":{"start":{"line":100,"column":6},"end":{"line":100,"column":80}},"47":{"start":{"line":103,"column":30},"end":{"line":103,"column":97}},"48":{"start":{"line":105,"column":4},"end":{"line":110,"column":5}},"49":{"start":{"line":106,"column":6},"end":{"line":109,"column":7}},"50":{"start":{"line":112,"column":20},"end":{"line":112,"column":73}},"51":{"start":{"line":114,"column":4},"end":{"line":125,"column":5}},"52":{"start":{"line":115,"column":27},"end":{"line":118,"column":8}},"53":{"start":{"line":120,"column":6},"end":{"line":120,"column":31}},"54":{"start":{"line":122,"column":6},"end":{"line":122,"column":34}},"55":{"start":{"line":124,"column":6},"end":{"line":124,"column":87}},"56":{"start":{"line":128,"column":4},"end":{"line":130,"column":5}},"57":{"start":{"line":129,"column":6},"end":{"line":129,"column":82}},"58":{"start":{"line":132,"column":4},"end":{"line":134,"column":5}},"59":{"start":{"line":133,"column":6},"end":{"line":133,"column":80}},"60":{"start":{"line":136,"column":30},"end":{"line":136,"column":97}},"61":{"start":{"line":138,"column":4},"end":{"line":143,"column":5}},"62":{"start":{"line":139,"column":6},"end":{"line":142,"column":7}},"63":{"start":{"line":145,"column":4},"end":{"line":150,"column":5}},"64":{"start":{"line":146,"column":36},"end":{"line":146,"column":43}},"65":{"start":{"line":147,"column":6},"end":{"line":147,"column":81}},"66":{"start":{"line":149,"column":6},"end":{"line":149,"column":87}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":13,"column":13},"end":{"line":13,"column":14}},"loc":{"start":{"line":13,"column":47},"end":{"line":22,"column":3}},"line":13},"1":{"name":"(anonymous_1)","decl":{"start":{"line":23,"column":14},"end":{"line":23,"column":15}},"loc":{"start":{"line":23,"column":40},"end":{"line":37,"column":3}},"line":23},"2":{"name":"(anonymous_2)","decl":{"start":{"line":38,"column":14},"end":{"line":38,"column":15}},"loc":{"start":{"line":38,"column":55},"end":{"line":55,"column":3}},"line":38},"3":{"name":"(anonymous_3)","decl":{"start":{"line":48,"column":38},"end":{"line":48,"column":39}},"loc":{"start":{"line":48,"column":46},"end":{"line":48,"column":79}},"line":48},"4":{"name":"(anonymous_4)","decl":{"start":{"line":56,"column":14},"end":{"line":56,"column":15}},"loc":{"start":{"line":56,"column":49},"end":{"line":80,"column":3}},"line":56},"5":{"name":"(anonymous_5)","decl":{"start":{"line":81,"column":10},"end":{"line":81,"column":11}},"loc":{"start":{"line":81,"column":50},"end":{"line":93,"column":3}},"line":81},"6":{"name":"(anonymous_6)","decl":{"start":{"line":87,"column":51},"end":{"line":87,"column":52}},"loc":{"start":{"line":87,"column":61},"end":{"line":87,"column":83}},"line":87},"7":{"name":"(anonymous_7)","decl":{"start":{"line":94,"column":13},"end":{"line":94,"column":14}},"loc":{"start":{"line":94,"column":55},"end":{"line":126,"column":3}},"line":94},"8":{"name":"(anonymous_8)","decl":{"start":{"line":127,"column":13},"end":{"line":127,"column":14}},"loc":{"start":{"line":127,"column":55},"end":{"line":151,"column":3}},"line":127}},"branchMap":{"0":{"loc":{"start":{"line":39,"column":4},"end":{"line":41,"column":5}},"type":"if","locations":[{"start":{"line":39,"column":4},"end":{"line":41,"column":5}},{"start":{},"end":{}}],"line":39},"1":{"loc":{"start":{"line":43,"column":4},"end":{"line":45,"column":5}},"type":"if","locations":[{"start":{"line":43,"column":4},"end":{"line":45,"column":5}},{"start":{},"end":{}}],"line":43},"2":{"loc":{"start":{"line":57,"column":4},"end":{"line":59,"column":5}},"type":"if","locations":[{"start":{"line":57,"column":4},"end":{"line":59,"column":5}},{"start":{},"end":{}}],"line":57},"3":{"loc":{"start":{"line":61,"column":4},"end":{"line":63,"column":5}},"type":"if","locations":[{"start":{"line":61,"column":4},"end":{"line":63,"column":5}},{"start":{},"end":{}}],"line":61},"4":{"loc":{"start":{"line":65,"column":4},"end":{"line":67,"column":5}},"type":"if","locations":[{"start":{"line":65,"column":4},"end":{"line":67,"column":5}},{"start":{},"end":{}}],"line":65},"5":{"loc":{"start":{"line":77,"column":23},"end":{"line":77,"column":99}},"type":"cond-expr","locations":[{"start":{"line":77,"column":60},"end":{"line":77,"column":79}},{"start":{"line":77,"column":82},"end":{"line":77,"column":99}}],"line":77},"6":{"loc":{"start":{"line":82,"column":4},"end":{"line":84,"column":5}},"type":"if","locations":[{"start":{"line":82,"column":4},"end":{"line":84,"column":5}},{"start":{},"end":{}}],"line":82},"7":{"loc":{"start":{"line":82,"column":8},"end":{"line":82,"column":29}},"type":"binary-expr","locations":[{"start":{"line":82,"column":8},"end":{"line":82,"column":19}},{"start":{"line":82,"column":23},"end":{"line":82,"column":29}}],"line":82},"8":{"loc":{"start":{"line":95,"column":4},"end":{"line":97,"column":5}},"type":"if","locations":[{"start":{"line":95,"column":4},"end":{"line":97,"column":5}},{"start":{},"end":{}}],"line":95},"9":{"loc":{"start":{"line":99,"column":4},"end":{"line":101,"column":5}},"type":"if","locations":[{"start":{"line":99,"column":4},"end":{"line":101,"column":5}},{"start":{},"end":{}}],"line":99},"10":{"loc":{"start":{"line":105,"column":4},"end":{"line":110,"column":5}},"type":"if","locations":[{"start":{"line":105,"column":4},"end":{"line":110,"column":5}},{"start":{},"end":{}}],"line":105},"11":{"loc":{"start":{"line":128,"column":4},"end":{"line":130,"column":5}},"type":"if","locations":[{"start":{"line":128,"column":4},"end":{"line":130,"column":5}},{"start":{},"end":{}}],"line":128},"12":{"loc":{"start":{"line":132,"column":4},"end":{"line":134,"column":5}},"type":"if","locations":[{"start":{"line":132,"column":4},"end":{"line":134,"column":5}},{"start":{},"end":{}}],"line":132},"13":{"loc":{"start":{"line":138,"column":4},"end":{"line":143,"column":5}},"type":"if","locations":[{"start":{"line":138,"column":4},"end":{"line":143,"column":5}},{"start":{},"end":{}}],"line":138},"14":{"loc":{"start":{"line":147,"column":13},"end":{"line":147,"column":81}},"type":"binary-expr","locations":[{"start":{"line":147,"column":14},"end":{"line":147,"column":72}},{"start":{"line":147,"column":77},"end":{"line":147,"column":81}}],"line":147}},"s":{"0":3,"1":3,"2":3,"3":1,"4":1,"5":2,"6":18,"7":18,"8":17,"9":16,"10":16,"11":2,"12":3,"13":1,"14":2,"15":1,"16":1,"17":1,"18":2,"19":1,"20":1,"21":0,"22":6,"23":1,"24":5,"25":1,"26":4,"27":1,"28":3,"29":3,"30":2,"31":2,"32":1,"33":2,"34":2,"35":2,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":0,"43":21,"44":1,"45":20,"46":13,"47":7,"48":7,"49":1,"50":6,"51":6,"52":6,"53":6,"54":6,"55":0,"56":13,"57":1,"58":12,"59":10,"60":2,"61":2,"62":1,"63":1,"64":1,"65":1,"66":0},"f":{"0":3,"1":18,"2":3,"3":2,"4":6,"5":2,"6":1,"7":21,"8":13},"b":{"0":[1,2],"1":[1,1],"2":[1,5],"3":[1,4],"4":[1,3],"5":[1,1],"6":[1,1],"7":[2,1],"8":[1,20],"9":[13,7],"10":[1,6],"11":[1,12],"12":[10,2],"13":[1,1],"14":[1,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"a96768ba3bc873c716fe9d670a256e1951fc2b8f"} +,"C:\\Users\\nick-\\repos\\pets\\back\\src\\graphql\\resolvers\\Queries.js": {"path":"C:\\Users\\nick-\\repos\\pets\\back\\src\\graphql\\resolvers\\Queries.js","statementMap":{"0":{"start":{"line":10,"column":16},"end":{"line":63,"column":1}},"1":{"start":{"line":11,"column":52},"end":{"line":16,"column":3}},"2":{"start":{"line":17,"column":27},"end":{"line":17,"column":93}},"3":{"start":{"line":17,"column":74},"end":{"line":17,"column":91}},"4":{"start":{"line":18,"column":25},"end":{"line":18,"column":89}},"5":{"start":{"line":18,"column":70},"end":{"line":18,"column":87}},"6":{"start":{"line":20,"column":4},"end":{"line":22,"column":5}},"7":{"start":{"line":21,"column":6},"end":{"line":21,"column":82}},"8":{"start":{"line":24,"column":20},"end":{"line":24,"column":73}},"9":{"start":{"line":25,"column":4},"end":{"line":25,"column":40}},"10":{"start":{"line":28,"column":4},"end":{"line":30,"column":5}},"11":{"start":{"line":29,"column":6},"end":{"line":29,"column":82}},"12":{"start":{"line":32,"column":23},"end":{"line":32,"column":53}},"13":{"start":{"line":34,"column":4},"end":{"line":36,"column":5}},"14":{"start":{"line":35,"column":6},"end":{"line":35,"column":78}},"15":{"start":{"line":38,"column":4},"end":{"line":38,"column":21}},"16":{"start":{"line":41,"column":4},"end":{"line":43,"column":5}},"17":{"start":{"line":42,"column":6},"end":{"line":42,"column":82}},"18":{"start":{"line":45,"column":20},"end":{"line":45,"column":73}},"19":{"start":{"line":46,"column":26},"end":{"line":46,"column":55}},"20":{"start":{"line":48,"column":4},"end":{"line":50,"column":5}},"21":{"start":{"line":49,"column":6},"end":{"line":49,"column":43}},"22":{"start":{"line":52,"column":24},"end":{"line":54,"column":5}},"23":{"start":{"line":53,"column":31},"end":{"line":53,"column":93}},"24":{"start":{"line":53,"column":54},"end":{"line":53,"column":92}},"25":{"start":{"line":55,"column":24},"end":{"line":55,"column":75}},"26":{"start":{"line":55,"column":56},"end":{"line":55,"column":74}},"27":{"start":{"line":56,"column":30},"end":{"line":59,"column":7}},"28":{"start":{"line":56,"column":69},"end":{"line":59,"column":5}},"29":{"start":{"line":58,"column":44},"end":{"line":58,"column":58}},"30":{"start":{"line":61,"column":4},"end":{"line":61,"column":82}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":11,"column":11},"end":{"line":11,"column":12}},"loc":{"start":{"line":11,"column":52},"end":{"line":16,"column":3}},"line":11},"1":{"name":"(anonymous_1)","decl":{"start":{"line":17,"column":15},"end":{"line":17,"column":16}},"loc":{"start":{"line":17,"column":27},"end":{"line":17,"column":93}},"line":17},"2":{"name":"(anonymous_2)","decl":{"start":{"line":17,"column":54},"end":{"line":17,"column":55}},"loc":{"start":{"line":17,"column":74},"end":{"line":17,"column":91}},"line":17},"3":{"name":"(anonymous_3)","decl":{"start":{"line":18,"column":13},"end":{"line":18,"column":14}},"loc":{"start":{"line":18,"column":25},"end":{"line":18,"column":89}},"line":18},"4":{"name":"(anonymous_4)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":70},"end":{"line":18,"column":87}},"line":18},"5":{"name":"(anonymous_5)","decl":{"start":{"line":19,"column":13},"end":{"line":19,"column":14}},"loc":{"start":{"line":19,"column":46},"end":{"line":26,"column":3}},"line":19},"6":{"name":"(anonymous_6)","decl":{"start":{"line":27,"column":10},"end":{"line":27,"column":11}},"loc":{"start":{"line":27,"column":47},"end":{"line":39,"column":3}},"line":27},"7":{"name":"(anonymous_7)","decl":{"start":{"line":40,"column":23},"end":{"line":40,"column":24}},"loc":{"start":{"line":40,"column":56},"end":{"line":62,"column":3}},"line":40},"8":{"name":"(anonymous_8)","decl":{"start":{"line":53,"column":24},"end":{"line":53,"column":25}},"loc":{"start":{"line":53,"column":31},"end":{"line":53,"column":93}},"line":53},"9":{"name":"(anonymous_9)","decl":{"start":{"line":53,"column":43},"end":{"line":53,"column":44}},"loc":{"start":{"line":53,"column":54},"end":{"line":53,"column":92}},"line":53},"10":{"name":"(anonymous_10)","decl":{"start":{"line":55,"column":48},"end":{"line":55,"column":49}},"loc":{"start":{"line":55,"column":56},"end":{"line":55,"column":74}},"line":55},"11":{"name":"(anonymous_11)","decl":{"start":{"line":56,"column":60},"end":{"line":56,"column":61}},"loc":{"start":{"line":56,"column":69},"end":{"line":59,"column":5}},"line":56},"12":{"name":"(anonymous_12)","decl":{"start":{"line":58,"column":35},"end":{"line":58,"column":36}},"loc":{"start":{"line":58,"column":44},"end":{"line":58,"column":58}},"line":58}},"branchMap":{"0":{"loc":{"start":{"line":20,"column":4},"end":{"line":22,"column":5}},"type":"if","locations":[{"start":{"line":20,"column":4},"end":{"line":22,"column":5}},{"start":{},"end":{}}],"line":20},"1":{"loc":{"start":{"line":28,"column":4},"end":{"line":30,"column":5}},"type":"if","locations":[{"start":{"line":28,"column":4},"end":{"line":30,"column":5}},{"start":{},"end":{}}],"line":28},"2":{"loc":{"start":{"line":34,"column":4},"end":{"line":36,"column":5}},"type":"if","locations":[{"start":{"line":34,"column":4},"end":{"line":36,"column":5}},{"start":{},"end":{}}],"line":34},"3":{"loc":{"start":{"line":41,"column":4},"end":{"line":43,"column":5}},"type":"if","locations":[{"start":{"line":41,"column":4},"end":{"line":43,"column":5}},{"start":{},"end":{}}],"line":41},"4":{"loc":{"start":{"line":48,"column":4},"end":{"line":50,"column":5}},"type":"if","locations":[{"start":{"line":48,"column":4},"end":{"line":50,"column":5}},{"start":{},"end":{}}],"line":48}},"s":{"0":3,"1":1,"2":6,"3":12,"4":5,"5":25,"6":5,"7":1,"8":4,"9":4,"10":3,"11":1,"12":2,"13":2,"14":1,"15":1,"16":2,"17":1,"18":1,"19":1,"20":1,"21":0,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1},"f":{"0":1,"1":6,"2":12,"3":5,"4":25,"5":5,"6":3,"7":2,"8":1,"9":1,"10":1,"11":1,"12":1},"b":{"0":[1,4],"1":[1,2],"2":[1,1],"3":[1,1],"4":[0,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"c8ce820be4d70e162b22fccab1d3ce0c4b83af3d"} +,"C:\\Users\\nick-\\repos\\pets\\back\\src\\graphql\\resolvers\\Relationships.js": {"path":"C:\\Users\\nick-\\repos\\pets\\back\\src\\graphql\\resolvers\\Relationships.js","statementMap":{"0":{"start":{"line":9,"column":22},"end":{"line":22,"column":1}},"1":{"start":{"line":12,"column":19},"end":{"line":12,"column":75}},"2":{"start":{"line":13,"column":6},"end":{"line":13,"column":37}},"3":{"start":{"line":17,"column":30},"end":{"line":17,"column":55}},"4":{"start":{"line":18,"column":36},"end":{"line":18,"column":73}},"5":{"start":{"line":19,"column":42},"end":{"line":19,"column":74}},"6":{"start":{"line":20,"column":40},"end":{"line":20,"column":71}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":11,"column":10},"end":{"line":11,"column":11}},"loc":{"start":{"line":11,"column":34},"end":{"line":14,"column":5}},"line":11},"1":{"name":"(anonymous_1)","decl":{"start":{"line":17,"column":10},"end":{"line":17,"column":11}},"loc":{"start":{"line":17,"column":30},"end":{"line":17,"column":55}},"line":17},"2":{"name":"(anonymous_2)","decl":{"start":{"line":18,"column":13},"end":{"line":18,"column":14}},"loc":{"start":{"line":18,"column":36},"end":{"line":18,"column":73}},"line":18},"3":{"name":"(anonymous_3)","decl":{"start":{"line":19,"column":16},"end":{"line":19,"column":17}},"loc":{"start":{"line":19,"column":42},"end":{"line":19,"column":74}},"line":19},"4":{"name":"(anonymous_4)","decl":{"start":{"line":20,"column":15},"end":{"line":20,"column":16}},"loc":{"start":{"line":20,"column":40},"end":{"line":20,"column":71}},"line":20}},"branchMap":{"0":{"loc":{"start":{"line":12,"column":19},"end":{"line":12,"column":75}},"type":"cond-expr","locations":[{"start":{"line":12,"column":30},"end":{"line":12,"column":68}},{"start":{"line":12,"column":71},"end":{"line":12,"column":75}}],"line":12}},"s":{"0":1,"1":2,"2":2,"3":1,"4":1,"5":1,"6":1},"f":{"0":2,"1":1,"2":1,"3":1,"4":1},"b":{"0":[1,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"03ca5576660e07383d792598c65244b9e4d3640a"} +,"C:\\Users\\nick-\\repos\\pets\\back\\src\\server\\app.js": {"path":"C:\\Users\\nick-\\repos\\pets\\back\\src\\server\\app.js","statementMap":{"0":{"start":{"line":8,"column":12},"end":{"line":8,"column":29}},"1":{"start":{"line":10,"column":19},"end":{"line":10,"column":55}},"2":{"start":{"line":11,"column":18},"end":{"line":11,"column":63}},"3":{"start":{"line":13,"column":0},"end":{"line":13,"column":29}},"4":{"start":{"line":14,"column":0},"end":{"line":14,"column":27}},"5":{"start":{"line":16,"column":0},"end":{"line":16,"column":35}},"6":{"start":{"line":18,"column":0},"end":{"line":29,"column":2}},"7":{"start":{"line":20,"column":84},"end":{"line":20,"column":95}},"8":{"start":{"line":22,"column":2},"end":{"line":28,"column":4}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":18,"column":13},"end":{"line":18,"column":14}},"loc":{"start":{"line":18,"column":30},"end":{"line":29,"column":1}},"line":18}},"branchMap":{},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0},"f":{"0":0},"b":{}} +,"C:\\Users\\nick-\\repos\\pets\\back\\src\\server\\server.js": {"path":"C:\\Users\\nick-\\repos\\pets\\back\\src\\server\\server.js","statementMap":{"0":{"start":{"line":16,"column":15},"end":{"line":35,"column":2}},"1":{"start":{"line":20,"column":18},"end":{"line":22,"column":12}},"2":{"start":{"line":24,"column":4},"end":{"line":24,"column":22}},"3":{"start":{"line":24,"column":16},"end":{"line":24,"column":22}},"4":{"start":{"line":26,"column":25},"end":{"line":26,"column":66}},"5":{"start":{"line":27,"column":23},"end":{"line":27,"column":91}},"6":{"start":{"line":29,"column":4},"end":{"line":31,"column":5}},"7":{"start":{"line":30,"column":6},"end":{"line":30,"column":82}},"8":{"start":{"line":33,"column":4},"end":{"line":33,"column":32}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":19,"column":11},"end":{"line":19,"column":12}},"loc":{"start":{"line":19,"column":30},"end":{"line":34,"column":3}},"line":19}},"branchMap":{"0":{"loc":{"start":{"line":20,"column":18},"end":{"line":22,"column":12}},"type":"cond-expr","locations":[{"start":{"line":21,"column":8},"end":{"line":21,"column":59}},{"start":{"line":22,"column":8},"end":{"line":22,"column":12}}],"line":20},"1":{"loc":{"start":{"line":24,"column":4},"end":{"line":24,"column":22}},"type":"if","locations":[{"start":{"line":24,"column":4},"end":{"line":24,"column":22}},{"start":{},"end":{}}],"line":24},"2":{"loc":{"start":{"line":29,"column":4},"end":{"line":31,"column":5}},"type":"if","locations":[{"start":{"line":29,"column":4},"end":{"line":31,"column":5}},{"start":{},"end":{}}],"line":29},"3":{"loc":{"start":{"line":29,"column":8},"end":{"line":29,"column":29}},"type":"binary-expr","locations":[{"start":{"line":29,"column":8},"end":{"line":29,"column":19}},{"start":{"line":29,"column":23},"end":{"line":29,"column":29}}],"line":29}},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0},"f":{"0":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0]}} } diff --git a/package-lock.json b/package-lock.json index 621dee5..3fa01a0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "my-pets-api", - "version": "0.1.34", + "version": "0.2.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "my-pets-api", - "version": "0.1.34", + "version": "0.2.0", "license": "MIT", "dependencies": { "@babel/cli": "^7.13.16", diff --git a/package.json b/package.json index 4e2873b..1ba9b32 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "my-pets-api", - "version": "0.1.34", + "version": "0.2.0", "description": "GraphQL server based on NodeJs to give back-end support a web client based on React", "author": "Nicolás Omar González Passerino", "license": "MIT", diff --git a/src/functions/parsers.js b/src/functions/parsers.js index ce2f0c2..6d59af0 100644 --- a/src/functions/parsers.js +++ b/src/functions/parsers.js @@ -71,3 +71,8 @@ export const findIds = async (model, ids, findOne = false) => { return (await model.find().where('_id').in(ids)).map(data => parsedAuxiliaryData(data)) } + +export const parseUniqueArray = (list, callback) => + Array.isArray(list) + ? Array.from(new Set(list)).map((item, i) => (callback ? callback(item, i) : item)) + : [] diff --git a/src/graphql/resolvers/Queries.js b/src/graphql/resolvers/Queries.js index 22b2f12..e07549a 100644 --- a/src/graphql/resolvers/Queries.js +++ b/src/graphql/resolvers/Queries.js @@ -5,6 +5,7 @@ import Pet from '../../db/models/pet.model' import User from '../../db/models/user.model' import { ApolloError } from 'apollo-server-errors' import { ERROR_MSGS, HTTP_CODES } from '../../constants/errors.json' +import { findIds, parseUniqueArray } from '../../functions/parsers' const Queries = { getUser: async (_, __, { loggedUser, token }) => ({ @@ -35,6 +36,29 @@ const Queries = { } return foundedPet + }, + getMyPetsPopulation: async (_, __, { loggedUser }) => { + if (!loggedUser) { + throw new ApolloError(ERROR_MSGS.MISSING_USER_DATA, HTTP_CODES.UNAUTHORIZED) + } + + const { _id } = await User.findOne({ userName: loggedUser.userName }) + const petPopulation = await Pet.find({ user: _id }) + + if (petPopulation.length === 0) { + return [{ name: 'All', quantity: 0 }] + } + + const petTypeInfo = Promise.allSettled( + petPopulation.map(pet => new Promise(resolve => resolve(findIds(PetType, pet.petType)))) + ) + const petTypeList = (await petTypeInfo).map(data => data.value[0].name) + const parsedPetTypeList = parseUniqueArray(petTypeList, info => ({ + name: info, + quantity: petTypeList.filter(_info => _info === info).length + })) + + return [{ name: 'All', quantity: petPopulation.length }, ...parsedPetTypeList] } } diff --git a/src/graphql/resolvers/tests/Queries.test.js b/src/graphql/resolvers/tests/Queries.test.js index cf2a151..598131d 100644 --- a/src/graphql/resolvers/tests/Queries.test.js +++ b/src/graphql/resolvers/tests/Queries.test.js @@ -86,7 +86,7 @@ describe('[Queries]', () => { }) }) - describe('[GetPet]', () => { + describe('[getPet]', () => { describe('[HAPPY PATH]', () => { test('Should return one of my pets', async () => { const getPetInfo = await Query.getPet(null, { id: petId }, { loggedUser: testEnv.user }) @@ -115,4 +115,30 @@ describe('[Queries]', () => { }) }) }) + + describe('[getMyPetsPopulation]', () => { + describe('[HAPPY PATH]', () => { + test('Should return my pets population', async () => { + const getPopulationInfo = await Query.getMyPetsPopulation(null, null, { + loggedUser: testEnv.user + }) + const [petType] = await Query.getPetTypes() + + expect(getPopulationInfo).toStrictEqual([ + { name: 'All', quantity: 1 }, + { name: petType.name, quantity: 1 } + ]) + }) + }) + + describe('[SAD PATH]', () => { + test('Should return a USER_MISSING_DATA error by not passing the loggedUser', async () => { + try { + await Query.getMyPetsPopulation(null, null, {}) + } catch (error) { + expect(error.message).toBe(ERROR_MSGS.MISSING_USER_DATA) + } + }) + }) + }) }) diff --git a/src/graphql/schemas/Entities.gql b/src/graphql/schemas/Entities.gql index 3cd5eb5..ecb83b0 100644 --- a/src/graphql/schemas/Entities.gql +++ b/src/graphql/schemas/Entities.gql @@ -30,4 +30,9 @@ type Pet { type AuxiliaryData { id: ID! name: String! +} + +type AmountData { + name: String! + quantity: Int! } \ No newline at end of file diff --git a/src/graphql/schemas/Operations.gql b/src/graphql/schemas/Operations.gql index 297b858..051ab19 100644 --- a/src/graphql/schemas/Operations.gql +++ b/src/graphql/schemas/Operations.gql @@ -4,6 +4,7 @@ type Query { getColors: [AuxiliaryData]! getMyPets: [Pet]! getPet(id: ID!): Pet + getMyPetsPopulation: [AmountData] } type Mutation {