Questions tagged [realm-js]

Realm is a mobile database: an alternative to SQLite & key-value stores

Links

  1. Github

  2. Site

  3. Documentation

55 questions
2
votes
2 answers

Realm on react-native : can't get results when not debugging

I can't get the results of any query when not debugging, but works perfectly when debugging Also I noticed that Realm is behaving very differently according to wither debugging or not This is just a summary of the idea : I'm printing…
MujtabaFR
  • 5,956
  • 6
  • 40
  • 66
1
vote
1 answer

How to reference an object in realmjs

If i have two related realm objects, e.g: const PersonSchema = { name: 'Person', properties: {name: 'string', cars: 'Car[]'}, }; const CarSchema = { name: 'Car', properties: {model: 'string', owner: {type:…
Dridi
  • 51
  • 5
1
vote
0 answers

Realm JS + React-Native: “no internal field” when creating a new object

I’m using the WildAid O-FISH post to create a similar project using realm JS react-native SDK with flexible sync. I’m trying to create a Photo object but I get a “no internal field” error. Here’s my Photo model export class Photo extends…
Renaud Aubert
  • 206
  • 1
  • 15
1
vote
1 answer

RealmDB results always showing empty

For a hobby project, I was trying to create and access the realm DB local using NodeJS SDK. I've created the DB (.realm file) with realm studio and CSV file, and able to browse the objects. However, when I tried to connect with NodeJS SDK, I'm…
Nithin CV
  • 1,046
  • 9
  • 23
1
vote
0 answers

Add user defined metadata to realm schema

I started using realm react native SDK and I am wondering if I can define a user defined attribute for a given object or attribute. With Apple Core Data there was a User Info dictionary attached to NSEntityDescription / NSPropertyDescription and I…
LiohAu
  • 611
  • 12
  • 36
1
vote
1 answer

How expensive is it to have a list field with thousands of elements on a realm object?

Let's say that we have a group object with a field called contacts on it. Contacts is a list that holds references to contact objects and can in theory have up to 20 000 objects in it. My question(s): If I query group object, am I taking a…
Olaf K
  • 167
  • 1
  • 9
1
vote
0 answers

realm crash on startup suddenly : "Unable to open a realm at path " "Realm file initial open failed: Invalid mnemonic"

Crash, Error: Unable to open a realm at path '/data/user/0/xxx/files/geo.realm': Realm file initial open failed: Invalid mnemonic. In our React Native project, this error has started to appear for 10-15% of our users since our last release, yet we…
1
vote
1 answer

'realm/util/features.h' file not found Sporadically Occurs when Re-Installing Pods. Realm-JS

Very occasionally the Realm pod (Realm-JS) will actually build and run correctly. The majority of the time in order for it to build without the "file not found" error I have to: Delete derived data and project build folder Clean pod cache $pod…
Alistair Cooper
  • 251
  • 1
  • 3
  • 11
1
vote
1 answer

RealmJS: clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have no idea how to get around to fixing this. I have a feeling it might be related to RealmJS but i have tried everything from their issues page on github. I have tried, downgrading Realm, cleaning the project, restart xcode, restart the whole…
Jacky Fox
  • 65
  • 1
  • 6
1
vote
1 answer

Unknown HTTP GET request in React Native Application

Our tester captured some unknown GET request while doing API testing in our React Native application. GET /inspector/device?name=some_unique_id&app=com.companyname.appname HTTP/1.1 Upgrade: websocket Connection: Upgrade Sec-WebSocket-Key: encrypted…
arthankamal
  • 6,341
  • 4
  • 36
  • 51
1
vote
0 answers

How To Compact a Realm Using Realm JS

I want to compact a Realm file in my Node JS app, but there is nothing about it in the Realm JS docs. I dug into the JS API reference, but the usage is vague (at least to me). Here's what I've tried so far: //This is my own custom function function…
Clifton Labrum
  • 13,053
  • 9
  • 65
  • 128
1
vote
0 answers

realm multiple classes error opening istance

I have a .realm file with 5 classes and I want to open that .realm file and read a column of one class but when I try to access the database I receive an error. It's an app for Android made in react native.This is the function I use to read data…
Didone
  • 11
  • 2
1
vote
1 answer

How to migrate RealmJS db after change the column type?

I'm using realmjs DB in my react-native app where I have a schema settings. I want to change a property type of that schema from int to string. So I understand that I need to perform migration and I decided to perform a linear migration. For the…
Julfikar
  • 1,353
  • 2
  • 18
  • 35
1
vote
1 answer

How to prevent multi beginTransactions in Realmjs?

I create a function to handle transaction, then I call it to multi places. I got crash when another transaction not yet complete when I open new transaction. Here my code: const RealmMakeTransaction = async (action) => { try { …
Mengheang
  • 43
  • 5
1
vote
2 answers

How to use realm with async fetch request?

I have meet this situation for my requirements: step 1. save data to local db which in the mobile phone (realm) step 2. upload the local data to the server, and the server will return the data ids if success step 3. delete the records in local db by…