group.by seems to be string if U look at Cloudant docs.