What I\'m doing is trying to write logic for cart in my web-app what I\'m creating. Problem what I\'m dealing right now is that when I use query to find cart by id :