Comments (13)
1.4.1 is out now.
from relational-pouch.
I'm sorry, but it looks like I accidentally published to npm without actually pushing to Github. Big error on my part; I'll have to reconstruct what I did and hopefully push out a 1.4.1. Super sorry about that. :/
from relational-pouch.
No worries ! Super thanks for your reply ;)
from relational-pouch.
Just to be sure, is it normal to still have some differences comparing with tag v1.4.0 ?
master...v1.4.0
from relational-pouch.
1.4.1 was just based off of the master branch, plus rebuilt with latest dependencies. I literally have no idea what went into 1.4.0, because it's lost now.
from relational-pouch.
Ok perfect. I just asked because I noticed a db.rel.query
method in 1.4.0 that does not exist anymore in 1.4.1.
from relational-pouch.
That was almost certainly a mistake, because I don't think I intentionally merged the change to add db.rel.query
(it's not even documented). Hopefully nobody tried to use it!
from relational-pouch.
Haha I almost did :p
So in order to query and keep relations, what would be your guidance ?
from relational-pouch.
Dunno. I don't even understand where db.rel.query
came from. Someone added support for pouchdb-find
, but I'm hesitant because I think relational-pouch isn't really optimized to solve that same set of problems.
from relational-pouch.
You mean that would produce kind of performance issues ?
from relational-pouch.
I'm mostly concerned about tightly coupling two separate plugins.
Also any implementation of db.rel.query
or db.rel.find
could easily exist as a separate plugin, so I kinda feel like that's where it should go.
from relational-pouch.
Hmmm ok I can understand your hesitation. In my case, I'm using both plugins and it's fine to keep them separate. Adding the glue to pouchDB-find is simple anyway.
Just a last question if you don't mind :p
Assuming I have a schema with many-to-many relations between authors and books (let's say a book could have been written by multiple authors, and an author could have written multiple books).
I noticed that if I request a particular author with the find method : db.rel.find('authors', 1)
, If one of its books has two related authors, the result will be an array of two authors.
So I'm requesting only one author but at the end I get an array of two authors and I have to iterate between them to retrieve the one I really want. I hope I'm clear enough ...
So I just wanted to know if it is the normal behaviour or if I did miss something ?
from relational-pouch.
I'm not really following, sorry. Maybe async relations can help out here?
from relational-pouch.
Related Issues (20)
- Confused about "hasMany" relationship (see description below) HOT 6
- Dead link in documentation HOT 1
- Heelp!!!! new post not adding to authors HOT 2
- Depreciate IE8 support HOT 1
- Delete all schema docs.
- Is db.rel.find() have an option for paging? HOT 12
- How to use 'pouchdb-validation' and 'relational-pouch'?
- How does the sync performance of this compare to vanilla pouchdb?
- Handling error while saving Relational data
- Handling ECONNRESET HOT 4
- don't save hasMany/queryInverse with many-to-many HOT 2
- find and delete by id not working
- find action, slow performance HOT 2
- db.rel.findHasMany is not working HOT 3
- [help] CouchDb 3.0 - Partitioned Databases HOT 5
- Delete successful but data has not removed HOT 2
- How to return _conflicts attribute HOT 1
- how to get sort data? HOT 1
- why pouchdb.rel.find() works only with integer id? HOT 6
- React Native app crashes when try to import
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from relational-pouch.