Skip to content

Commit 9c03533

Browse files
add ConsistencyLevel consts
1 parent 5a9bf2c commit 9c03533

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

data/journey.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ describe("data", () => {
609609
.withClassName(thingClassName)
610610
.withId(id)
611611
.withVector()
612-
.withConsistencyLevel("QUORUM")
612+
.withConsistencyLevel(weaviate.replication.ConsistencyLevel.QUORUM)
613613
.buildPath()
614614
.then(path => {
615615
expect(path).toContain("?include=vector");

data/replication/consts.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export const ConsistencyLevel = {
2+
ONE: "ONE",
3+
QUORUM: "QUORUM",
4+
ALL: "ALL",
5+
};
6+
7+
const replicationConsts = {
8+
ConsistencyLevel,
9+
};
10+
11+
export default replicationConsts;

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import batchConsts from "./batch/consts.js";
1313
import filtersConsts from "./filters/consts.js";
1414
import cluster from "./cluster/index.js";
1515
import clusterConsts from "./cluster/consts.js";
16+
import replicationConsts from "./data/replication/consts.js";
1617

1718
const app = {
1819
client: function (params) {
@@ -47,6 +48,7 @@ const app = {
4748
batch: batchConsts,
4849
filters: filtersConsts,
4950
cluster: clusterConsts,
51+
replication: replicationConsts,
5052
};
5153

5254
function initDbVersionProvider(conn) {

0 commit comments

Comments
 (0)