You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-14Lines changed: 16 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -67,22 +67,24 @@ Valid connection string args:
67
67
| bearertoken |\<token\>| an access token |
68
68
| sslmode | disable \| require \| verify-ca | TLS option, the default is `disable`. If `verify-ca` is set, the TLS certificate configured in the Dgraph cluster must be from a valid certificate authority. |
69
69
70
-
## Some example connection strings: | Value | Explanation | |
| dgraph://localhost:9080 | Connect to localhost, no ACL, no TLS |
75
+
| dgraph://sally:supersecret@dg.example.com:443?sslmode=verify-ca | Connect to remote server, use ACL and require TLS and a valid certificate from a CA |
76
+
| dgraph://foo-bar.grpc.us-west-2.aws.cloud.dgraph.io:443?sslmode=verify-ca&apikey=\<your-api-connection-key\>| Connect to a Dgraph Cloud cluster |
77
+
| dgraph://foo-bar.grpc.hypermode.com?sslmode=verify-ca&bearertoken=\<some access token\>| Connect to a Dgraph cluster protected by a secure gateway |
80
78
81
-
Using the `Open` function with a connection string: // open a connection to an ACL-enabled, non-TLS
82
-
cluster and login as groot const {client,closeStub} =
0 commit comments