couchdbkit icon indicating copy to clipboard operation
couchdbkit copied to clipboard

Nested documents

Open damoxc opened this issue 14 years ago • 3 comments

It would be good if you could nest documents, or nest an array of documents or something similar rather than just DictProperty and ListProperty.

damoxc avatar Jan 18 '11 22:01 damoxc

we could have a NestedProperty linking to 1 more document ids.

class A(Document):
    link = DocLinkProperty(SomeDocumentClass)
    collection = CollectionProperty(SomeDocumentClass)

Do you want something like it ? Naming could change though

benoitc avatar Jan 19 '11 08:01 benoitc

That sounds perfect, not overly fussed by the naming!

With a pointer in the right direction I could give you a hand implementing this.

damoxc avatar Jan 19 '11 15:01 damoxc

That actually would be great

SlNPacifist avatar Feb 07 '11 14:02 SlNPacifist