Schema of Product has many details like: productName, manufactured date, manufacturer name, product type etc. But I need to support flexibility of having no defined schema for product details. To achieve this below is the Realm-JS schema.
import…
I am new in Realm database, it's amazing, and I've few doubts about the relationship thing. Rather than asking each doubt, I prefer to understand it from an example. Below given a sample schema copied from realm javascript docs.
const CarSchema = {
…
Realm process does not exit when I am closing realm only in case of synced realm. My main issue is I am using Synced Realm with Electron and when I close the electron application, it keeps running in background (doesn’t get killed, the synced realm…
I am working with realm flexible sync in react native and i want to define schema for below json where key names are dynamic objectId and has set of properties so i tried dictionary and mixed but didn't worked.
Also this group_taxes would have n of…
Should I use realmjs for react native, realm-kotlin for android and realm-swift for iOS?
Is there any documentation giving guidance on how to achieve this?
I found it really hard to do it I don't know where to start it.
Please help thank you.
The example below is working fine while in debug is enabled using React Native Debugger but the app is crashing in normal mode for Android only. Can someone assist me resolve this issue, please?
const Cat = {
name: "Cat",
properties: {
…
I'm building a chat app. Each channel has many messages. I am building the channel list view where I want to display all the channels sorted by the most recent message sent at per channel.
Each time a message is sent or received I would like to keep…
In a react-native app, using realm.js, the below function is throwing The realm is already in a write transaction error.
function definition:
export const addJob = (params) => {
const job = {
...params,
id: uuid.v4(),
account:…
I have a very simple schema structure in my mobile app:
export const DepositSchema = {
name: "Deposit",
properties: {
uuid: "string",
payments: "Payment[]",
},
primaryKey: "uuid",
};
export const PaymentSchema = {
name:…
In a react-native project using Realm-js, I've just created a clone of the app, integrated all libs, and copied over all src directories.
The app builds installs and runs on Android.
When i go through the authentication flow (which utilizes realm to…
How long are mongodb realms retained on a device running the application by default (Sync/Normal) Does it matter if its a normal or synced realm? If so whats the default retention by the device for both?
I am attempting to query in RealmJS on a Date field for birthdays.
I want to find all the people that have a birthday today.
The problem is that I can't ignore the year. Is there a way to do this?
My code:
const today = new Date();
const morning =…
Since Realm is no longer recommending query-based sync (https://docs.realm.io/sync/using-synced-realms/choosing-your-sync-type#query-based-sync), I've decided to switch to full sync and now I'm facing a problem with the user permissions. I can't set…