I got a knowledge database, I built an app with it. What I want to do is import the lines from CSV file to realm database with Realm Browser, I just want to query no insert and update. All examples are about insert data line first and then query it out, but can I first to query? Still need to create schema and new Realm() ?
const Realm = require('realm');
......
render(){
class Car {};
Car.schema = {
name: 'Honda',
properties: {
id: 'int',
price: 'string'
}
}
let realm = new Realm({schema: [Car]});
let myCar = realm.ojects('Car');
return(<View>)
}
I want to know everytime I fetch data lines in new component, I should follow these codes? Cant I just create realm class and the fetch? Thank you for helping new beginner~