Skip to content

Commit e5777f1

Browse files
authored
Update replication-mongodb.md
1 parent db6bd8d commit e5777f1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs-src/docs/replication-mongodb.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ On the client-side we create the exact same RxDatabase and collection and then r
218218

219219
import { createRxDatabase } from 'rxdb';
220220
import { getRxStorageDexie } from 'rxdb/plugins/storage-dexie';
221-
import { replicateRxServer } from 'rxdb/plugins/replication-rxserver';
221+
import { replicateServer } from 'rxdb-server/plugins/replication-server';
222222

223223
const db = await createRxDatabase({
224224
name: 'mydb-client',
@@ -243,7 +243,7 @@ await db.addCollections({
243243

244244
// Start replication to the RxServer endpoint printed by the server:
245245
// e.g. http://localhost:8080/humans/0
246-
const replicationState = replicateRxServer({
246+
const replicationState = replicateServer({
247247
replicationIdentifier: 'humans-rxserver',
248248
collection: db.humans,
249249
url: 'http://localhost:8080/humans/0',

0 commit comments

Comments
 (0)