database - Fetch field of another Doc in CouchDB? -


i'm new couchdb , have simple task have no been able find straight answer.

i have 2 related docs: order , invoice

invoice = {   id: "invoice_id",   order: "order_id",   values: [...] }  order = {   id: "order_id",   **order_number: 12345** } 

i have defined map function select unfulfilled invoices, need order_number, in order doc. same transaction. how fetch order_number order when invoices?

i've looked around , i'm getting many answers like: view collation, linked documents, include_docs=true, structure docs have both...

i'm looking simplest way clear explanation. appreciate help.

p.s. since i'm new i'm finding couchdb development involved. have map functions, need pushed couchinstance? or edit map functions in futon? there better ways develop against couchdb? see there's couchapp docs sparse , project hasn't been updated in while.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -