https://github.com/dgraph-io/dgraph/blob/master/client/doc.go is now broken following https://github.com/dgraph-io/dgraph/commit/26ec2acf516836bf1a0f86d77d49eec94360c84e#diff-1cd41a2611da49ce63630d5a51bd82c5 though updated working code seems to be written in examples_test.go