danivijay / react-commerce

Shopping cart made with ReactJS.
3 stars 2 forks source link

Unable to add product to cart #58

Closed danivijay closed 5 years ago

danivijay commented 5 years ago
{"errors":[{"message":"Unknown argument \"owner_user_id\" on field \"transaction\" of type \"Mutation\". Did you mean \"user_id\"?","locations":[{"line":2,"column":131}]},{"message":"Cannot query field \"owner_user_id\" on type \"Transaction\". Did you mean \"user_id\"?","locations":[{"line":9,"column":5}]}]}
ashinpchandran commented 5 years ago

A new column owner_user_id was added in the transaction model and product model and the products added earlier didn't have this attribute and that is why the error occurred. Now I have added a new product and then tried to add the same to the cart and it was successful.