0

Based on existing question Multiple CouchDB Document fetch with couchdb-python

The question was:

Blockquote: How to fetch multiple documents from CouchDB, in particular with couchdb-python?

One answer was:

Blockquote: Easiest way is to pass a include_docs=True arg to Database.view. Each row of the results will include the doc

My question: how can i 'cast' or convert the returned document to my custom defined document.

Thanks

1 Answer 1

-1

As you're using Python I'd recommend couchdbkit. There you can either use the MyDocument.view() method or pass a schema parameter to Database.view().

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.