Skip to main content

Questions tagged [rxdb]

The tag has no usage guidance.

rxdb
0 votes
1 answer
429 views

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', ...
mye's user avatar
  • 103
0 votes
1 answer
817 views

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

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 ...
Tiago Stapenhorst's user avatar
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
1 vote
0 answers
383 views

How to use RxDB with PouchDB adapter in a Nuxt 3 project?

I'm using Nuxt 3 with client side rendering and I'm having some issues making RxDB with PouchDB adapter to work. I'm having issues getting RxDB/PouchDB to work. :/ Excerpt from nuxt.config.ts (I tried ...
HypeWolf's user avatar
  • 820
0 votes
1 answer
775 views

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 ...
Tony Ngomana's user avatar
2 votes
1 answer
714 views

How to update local data from rxdb to server database postgrasql through graphql in react

we are trying rxdb as local database and postgresql as a server database and through graphql end point we are able to push and pull data from local to server and vice-versa but how to update and ...
Sheethal Patil'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
3 votes
0 answers
463 views

Rxdb sync not update db

There are 3 bases (front, node, remote). Front <=> node, node <=> remote. When the front base is updated, the data goes to the remote base, but the node is not updated. In theory, the node ...
Denis Makarov's user avatar
2 votes
1 answer
928 views

Is there a way to auto increment a number field in RxDB?

I've got a simple schema: export default { title: 'hash schema', version: 0, primaryKey: 'hash', type: 'object', keyCompression: true, properties: { uuid: { type: 'string' }, id: { ...
Kasper Seweryn's user avatar
2 votes
0 answers
869 views

package.json entry points with rollup and @rollup/plugin-node-resolve

I'm looking for some help with package.json entry points (i.e. with @rollup/plugin-node-resolve, with snowpack). For a package I'm importing (indirectly via RxDB), I'm having some issues and ...
user1224598's user avatar
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
0 votes
1 answer
396 views

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 ...
Special Character's user avatar
4 votes
1 answer
897 views

How Do I Properly Initialize RxDB in a Vue App with global

I'm trying out RxDB for the first time in a Vue 3 app, and getting started is a bit more tricky than I expected (and it's probably my fault). I installed RxDB with NPM in my project ("rxdb": ...
Clifton Labrum's user avatar

15 30 50 per page