I have a product model and a keyword model which looks like this:
class Product{
String id;
String name;
List<KeyWord> keywords;
...
}
class KeyWord{
String id;
String title;
}
How to store them in Firestore to enable searching products by their keywords, And show a drop-down list of some pre-saved keywords like what happens in the stack overflow keywords system.