Skip to content

Commit dce5869

Browse files
update example
Signed-off-by: Kartikay <kartikay_2101ce32@iitp.ac.in>
1 parent 312bc14 commit dce5869

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/v1/example.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { v1 } from '@authzed/authzed-node';
2-
const { promises: promiseClient } = client; // access client.promises
32
// set up it on localhost like this:
43
// const client = v1.NewClient('mytokenhere', 'localhost:50051', 1);
54
const client = v1.NewClient('mytokenhere');
5+
const { promises: promiseClient } = client; // access client.promises after instantiating client
66

77
const writeRequest = v1.WriteSchemaRequest.create({
88
schema: `definition test/user {}

0 commit comments

Comments
 (0)