mirror of
https://github.com/jo/couchdb-best-practices.git
synced 2026-05-15 14:16:00 -06:00
[GH-ISSUE #58] Query naming clash in 'One to N Relations' #1148
Labels
No labels
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/couchdb-best-practices#1148
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @h4cc on GitHub (Jul 10, 2015).
Original GitHub issue: https://github.com/jo/couchdb-best-practices/issues/58
I implemented 1-n relations and got the following problem.
In the section https://github.com/eHealthAfrica/couchdb-best-practices#one-to-n-relations the example looks like this:
When using a query to fetch all artists, also the album relations will be fetched:
In the section 'N to N Relations', the example does not have that problem because a own namespace
friendship:has been used:Would it be better to have a own namespace for the 'One to N Relations' too?
@fer-ri commented on GitHub (Oct 25, 2018):
Any solution for this? or we need to change the structure of
_id?@MarcMcIntosh commented on GitHub (Oct 26, 2018):
a colon ":" is \u003A,
in the querry switching \uffff for \u0034 would exclude some characters.
Can \uffff of \uff0 be used as separator tnsead of a colon?
so the _id would look like
"_id": "friendship\ufffperson\ufffavery-mcdonalid\ufffwith\ufffperson\uffftroy-howell"