Skip to content

Conversation

parkerduckworth
Copy link
Member

@parkerduckworth parkerduckworth commented Apr 11, 2023

Introduces client.graphql.get().withConsistencyLevel() to set desired consistency level per query.

Example:

import weaviate, { WeaviateClient } from 'weaviate-ts-client';

const client: WeaviateClient = weaviate.client({
  scheme: 'http',
  host: 'localhost:8080',
});

const resp = await client.graphql
  .get()
  .withClassName('Article')
  .withFields('_additional { id isConsistent }')
  .withConsistencyLevel('ONE')
  .do();

console.log(`resp: ${JSON.stringify(resp)}`);

@parkerduckworth parkerduckworth requested a review from a team as a code owner April 11, 2023 15:15
@aliszka aliszka force-pushed the gql-consistency-level branch from 99028ff to 1b792fc Compare May 5, 2023 11:20
@aliszka aliszka merged commit 8828634 into main May 5, 2023
@aliszka aliszka deleted the gql-consistency-level branch May 5, 2023 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants