Skip to main content

All Questions

Tagged with
1 vote
1 answer
101 views

Add item to nested array in RXDB

I am using RXDB for the first time and i am a bit of trouble understanding how to add data to a document. I have a "boards" collection, which i can get with db.boards; Boards have "...
Boguz's user avatar
  • 1,743
1 vote
0 answers
170 views

Electron - unable to use rxdb in vuejs renderer process

I'm trying to use rxDB inside my electron vue app. I've followed the guide on how to implement it inside the renderer process, and I have the following code in my App.vue file: // Importo dipendenze ...
OHICT's user avatar
  • 451
1 vote
1 answer
512 views

pouchdb or alternative where I can control how much data stored locally?

In the design stage for an app that collects large amounts of data... Ideally, I want it to be an offline-first app and was looking to Pouchdb/Counchdb - However, the data needs to be kept for years ...
baradhili's user avatar
  • 564
2 votes
0 answers
562 views

Rxdb infinitely pulling in replicateRxCollection

I'm working with rxdb and I have pull and push handlers for the backend I have used supabase I have setup the code for replication as follows: replication.ts import { RxDatabase } from "rxdb"...
Rohan Keskar18's user avatar
1 vote
0 answers
66 views

How can I configure a plugin in RxDB?

I added the ajv validation plugin through the standard way: import { RxDBAjvValidatePlugin } from 'rxdb/plugins/ajv-validate'; addRxPlugin(RxDBAjvValidatePlugin); and now see the following error: ...
Ilya Loskutov's user avatar
4 votes
0 answers
598 views

RxDB check if a local database exists

How can I find out whether the local db (indexedDB) with a given name already exists? const db = await createRxDatabase({ name: 'heroesdb', storage: getRxStoragePouch('idb'), }); This approach, ...
Ilya Loskutov's user avatar
2 votes
0 answers
314 views

Uncaught (in promise) ReferenceError: process is not defined when calling createRxDatabase in aurelia app

I am trying to use rxdb as a store for my aurelia app. I have not found a plugin that implements this aleady, so start writing my own solution. I am using aurelia-cli 2.0.3, aurelia-loader-nodejs 1.1....
harfel's user avatar
  • 297
1 vote
1 answer
296 views

Why is the vanilla JS example for RxDB not working

I've followed the instructions at GitHub, but the example doesn't work. The app shows "Starting database". At the browser console there is this error: Uncaught (in promise) TypeError: ...
FredVal's user avatar
  • 11
-1 votes
1 answer
224 views

How to sync revisions when calling bulkDocs on pouchdb instance in RxDB

I'm trying to bulk update some RxDB docs, since RxDB does not have a bulk update function I have to use the bulkDocs function on the built in pouchdb instance. I can successfully do this but then my ...
Jessie Slobogian-Sanford's user avatar
1 vote
0 answers
2k views

rollup cannot find exported function using commonjs plugin even with namedExports

I'm trying to use rxdb with rollup but rxdb imports the clone module, and apparently in a way incompatible with rollup and the commonjs plugin. I see this error when I run yarn dev: [!] Error: '...
xrd's user avatar
  • 4,069
1 vote
0 answers
240 views

RxDb - Delete object from array with specific index

It gives me a head-ache seeing all solutions using $pull in MongoDb that RxDb inspire it's queries I started looking into docs I saw that RxDb uses modifyjs. Yee... it doesn't support $pull operator ...
Adrak Pro's user avatar
3 votes
1 answer
1k views

RxDb, cannot sort on field(s) XXX when using the default index

I just discovered RxDb, which as far as I understand is running PouchDB underneath, in any case, I have defined a fairly simple schema for an entity: let nodeSchema: RxJsonSchema<NodeDocType> = ...
Oscar Franco's user avatar
  • 6,050
1 vote
1 answer
110 views

RxDB leader-ship blocks all sockets in chrome

I used the waitForLeadership to let only one tab sync the db. And it looks like it works. But if I activate this feature and open more than 3 tabs, the next tabs won't load. Chrome always says, ...
Auryn's user avatar
  • 1,156
3 votes
1 answer
3k views

RxDB - Document update conflict (error 409)

I use RxDB and want to update the document in it. This is how the db is created: const _create = async function() { const db = await RxDB.create({ name: 'myName', adapter: process.env....
max's user avatar
  • 642