We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 312bc14 commit dce5869Copy full SHA for dce5869
1 file changed
examples/v1/example.js
@@ -1,8 +1,8 @@
1
import { v1 } from '@authzed/authzed-node';
2
-const { promises: promiseClient } = client; // access client.promises
3
// set up it on localhost like this:
4
// const client = v1.NewClient('mytokenhere', 'localhost:50051', 1);
5
const client = v1.NewClient('mytokenhere');
+const { promises: promiseClient } = client; // access client.promises after instantiating client
6
7
const writeRequest = v1.WriteSchemaRequest.create({
8
schema: `definition test/user {}
0 commit comments