Skip to main content

Questions tagged [rxdb]

The tag has no usage guidance.

-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
0 votes
0 answers
154 views

Slow loading Nuxt/Electron Desktop App with large datasets using rxdb

When loading a page/table with more than 1000 results, it takes around six seconds for the data to load and sometimes temporarily freezes the application. Pagination wont work because I need to get ...
Jayson H's user avatar
  • 2,038
3 votes
0 answers
771 views

Rxdb: Purge deleted items and old revisions by manually replicating (copying) rxdb database?

I'm looking for a way to replicate an rxdb instance locally, in the browser (local storage to local storage). I read somewhere that this is the only way to purge deleted items (can't find the link now)...
yen's user avatar
  • 2,092
3 votes
0 answers
130 views

possible to generate RxDB schema from existing graphql schema?

Curious if this is possible, I see graphQLSchemaFromRxSchema for working in the other direction, but we already have a graphQL schema we want to use.
Chris Drackett's user avatar
1 vote
0 answers
125 views

Rxdb migration is not running

I have a schema with version 0, and 4k docs with it. Changing version to 1, have the following strategy: autoMigrate: true, migrationStrategies: { 1: (r: any) => { debugger; ...
Vladimir Mikhaylovskiy's user avatar
0 votes
1 answer
63 views

Doc is always null in the pullQueryBuilder

I have set up graphql sync with a collection. The first sync runs fine, the data is populated, but after that I get an error like this: core.js:4197 ERROR Error: Uncaught (in promise): {"status&...
Koppa Péter's user avatar
0 votes
1 answer
686 views

rxdb: migration of document failed final document does not match final schema

I just changed my rxdb schema version from 0 to 1 in order to add a deletedAt attribute. I added a migration strategy for going from ver 0 to 1. Now I'm getting this error: "migration of document ...
yen's user avatar
  • 2,092
1 vote
1 answer
189 views

Data syncing with pouchdb-based systems client-side: is there a workaround to the 'deleted' flag?

I'm planning on using rxdb + hasura/postgresql in the backend. I'm reading this rxdb page for example, which off the bat requires sync-able entities to have a deleted flag. Q1 (main question) Is ...
yen's user avatar
  • 2,092
8 votes
2 answers
2k views

RxDB - Use the existing local DB

Case How to open an existing database? Issue I already create one database with RxDB.create(), and created some collections, put some documents in it So, in another script, i want to open that ...
Andon Mitev's user avatar
  • 1,432
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
4 votes
1 answer
2k views

How to handle JWT authentication with RxDB?

I have a local RxDB database and I want to connect it with CouchDB. Everything seems to works fine except for authentication. I have no idea how to add it differently then inserting credentials in ...
Alan Wołejko's user avatar
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
1 vote
1 answer
726 views

RxDB/Electron storing data in sqlite

I want to build a hybrid using Ionic/Electron to run it on Desktop,Browser and Android, after doing some research i found about RxDB which by it's definition seems to fit this kind of DB usage (https:/...
user7616817's user avatar

15 30 50 per page