Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. Unhandled Exception: PlatformException(error, Invalid Query. Queries only support having a single array-contains filter., null)
  2.  
  3. listProvider = new List(2);
  4. listProvider[0] = defaultProvider;
  5. listProvider[1] = defaultDomyProvider;
  6.  
  7. /*listCategory = new List(1);
  8. listCategory[0] = defaultCategory;*/
  9.  
  10.  
  11. Firestore.instance.collection('_products').document().setData({
  12. 'code': code,
  13. 'count': count,
  14. 'description': description,
  15. 'img': img,
  16. 'thumbnail': thumbnail,
  17. 'name': name,
  18. 'nameLowercase': name.toLowerCase(),
  19. 'priceSale': priceSale,
  20. 'pricePurchase': pricePurchase,
  21. 'provider': listProvider,
  22. 'category': listCategory, //TODO
  23. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement