antoniopresto / react-native-local-mongodb

react-native local mongodb storage.
MIT License
303 stars 66 forks source link

Is it possible to select or filter data in different data collection? #60

Closed ZMChoo closed 5 years ago

ZMChoo commented 5 years ago

Hi, I'm a newbie in react native, for my question, is it possible to select the different collection(not sure is it datastore's filename in here) to access? For example, I have a filename called Storage A and Storage B, so when I load the database, how can I choose which database should be loaded? db.loadDatabase(function (err, Storage A) { // Callback is optional } I'm not sure this is the correct way or not?

antoniopresto commented 5 years ago

tou should create one db at a time and then use each one independently