Skip to content

Commit ba86651

Browse files
committed
[AUTOMATION POST DEPLOYMENT] Update code samples
1 parent 60e4dee commit ba86651

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

snippets/generated-code-samples/code_samples_update_network_1.mdx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,29 @@ curl \
1919
}'
2020
```
2121

22+
```javascript JS
23+
client.initializeNetwork({
24+
self: 'leader-1',
25+
remotes: {
26+
'leader-1': {
27+
url: 'http://127.0.0.1:7700',
28+
searchApiKey: 'searchKey',
29+
writeApiKey: 'masterKey',
30+
},
31+
'remote-paris': {
32+
url: 'http://192.168.1.11:7700',
33+
searchApiKey: 'searchKeyRemote',
34+
writeApiKey: 'masterKey',
35+
},
36+
},
37+
shards: {
38+
movies: {
39+
remotes: ['leader-1', 'remote-paris'],
40+
},
41+
},
42+
});
43+
```
44+
2245
```python Python
2346
client.add_or_update_networks({
2447
"remotes": {

0 commit comments

Comments
 (0)