I've used mongodb in the past and I want to use similar schema. I've tried to create it using PHP driver but it doesn't work as I expected. So my guesses were either rethinkdb does not support it or php driver is not capable to do this.
r\table('User')->insert([
'username' => 'Something',
'skills' => [
'php' => 10,
'html' => 15
]
])->run($conn)
result in RethinkDB administrator js client:
{
"username": "Something" ,
"id": "899a2693-dd94-4670-a496-05626a88d190" ,
"skills": { }
}
What do you suggest and how should I do this?