RethinkDB Map/Reduce examples -


i running through map/reduce examples in rethinkdb docs. have documents this:

{ "category":  "fiction" , "content":  "this far, no further!" , "id":  "0fc5339b-8139-4996-8979-88a0051195e3" , "title":  "the line must drawn here" } 

when follow examples using data explorer. e.g.

r.table('posts').map(lambda post: 1) 

i error:

syntaxerror: missing ) after argument list 

this because data explorer allows javascript input. need switch make work:

r.table('posts').map(function(post){return 1}) 

Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -