Questions tagged [rxdb]

44 questions
1
vote
1 answer

Is there an issue in rxDB Query for an Array Element?

I am trying to get those objects which have "someArray" - array and one of someArray object "val" > 0 and "someKey" === 415 I am using mongoDBs' chained methods in rxDB, as mentiond in rxdb documentation, but query for an Array Element always…
Vano
  • 690
  • 3
  • 8
  • 25
1
vote
2 answers

How to list all documents in an RxDB collection?

In RxDB, to list all documents in a collection on a remote db that has documents, I've tried: myCollection.dump() .then(json => console.dir(json)); and myCollection.find().exec() // <- find all documents .then(documents =>…
Kevin
  • 530
  • 4
  • 8
0
votes
0 answers

Is there better option than storing compressed base64 string to rxdb loki indexeddb to increase performace?

So I am developing PWA with svelte + vite for taking reports which has picture and text in it's form, now all that data is saved on rxdb+lokijs+indexeddb, before I save the picture, I would compress it with svelte image encoder with 50% compression,…
Malik
  • 236
  • 2
  • 3
  • 14
0
votes
1 answer

How to store Typescript data types in RxDB?

New to RxDB here. I've read through the RxDB document and seems there's no elegant way to store types in RxDB. For example, Sum types type Animal = {kind: 'horse', pawColor: Color} | {kind: 'bird', speed: number} Simple OR types (or…
mye
  • 103
  • 2
  • 6
0
votes
1 answer

Which non premium RxDB RxStorage can be used as a database backend for GraphQL Replication on a NodeJS backend application?

I'm studying RxDB to use it in a NodeJS backend with GraphQL replication but I couldn't find any free opensource RxStorage with this specs in the documentation. PouchDB - seems to work only with CouchDB replication (no info about GraphQL in the…
Tiago Stapenhorst
  • 708
  • 2
  • 9
  • 22
0
votes
1 answer

Unable to sync RxDB with couchdb on react-native after creating collections

Why would rxdb throw this error when try to connect/sync on couch server Error Sync: TypeError: undefined is not an object (evaluating 'db.todos.syncCouchDB') I tested the same function on my web app and works perfectly. By the way I'm using it on…
0
votes
1 answer

WebSQL threw an error [Error: Error code 1: no such table: document-store]

We are using react-naive-sqlite-2 in our application with RxDB and started getting this error somewhat sporadically. It seems to happen after we remove the database. I was surprised to see this was a WebSQL error since we are using react-native and…
Special Character
  • 2,321
  • 4
  • 25
  • 34
0
votes
0 answers

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 the counts for my "statistics cards" and rxdb…
Jayson H
  • 1,928
  • 4
  • 21
  • 28
0
votes
1 answer

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":409,"name":"conflict","message":"Document update…
Koppa Péter
  • 264
  • 1
  • 8
0
votes
1 answer

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 failed final document does not match final schema".…
yen
  • 1,769
  • 2
  • 15
  • 43
0
votes
3 answers

How to make this global variable hold its value between calls?

I'm trying to reduce the amount of times the database object is initialized in my data access file (variable database inside the file tree-rxdb.mjs). I created a global variable to hold a reference to the database object and check if it has been…
Aspiring Dev
  • 505
  • 1
  • 4
  • 17
0
votes
1 answer

Rxdb Plugin: Using the RxCollectionBase#insert method in a plugin

I am trying to create a plugin for rxdb. I want to catch the exception raised by insert and return an hash with {[fieldName: string] => [error:string]} When using my new method though, I am getting an exception, and it seems like the method is…
Shiyason
  • 759
  • 7
  • 16
0
votes
1 answer

RxDB - can't find collection after reload

Trying to start with RxDB in my angular application. Wanted to get something simple to work: export const LANG = { version: 0, title: "Language Key", type: "object", properties: { key: { type: "string", primary: true …
-1
votes
1 answer

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 revisions are out of sync. Is there a way to sync…
1 2
3