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
Post a Comment