neumino/thinky

What relation to put for array? - maybe to update your documentation

goors opened this issue · 1 comments

goors commented

Question

I have some document with:

name doc1

{
"some_key":"sample"
"ids_to_doc2":[id1, id2, id3]
}

and document with name doc2

{

"name":"name1"
"id":"id1"
}

{

"name":"name2"
"id":"id2"
}

{

"name":"name3"
"id":"id3"
}
  1. How to define relation hasMany or hasAndBelongsToMany ?
  2. When doing select who final result will look like (i know this must be some merge)?

I used Doctrine for some php project and i am using Rethinkdb for 3 years now and this is first time that i am using any ORM for it.

Sorry, I have only just seen this, do you still wish to know?