We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5ccdaf commit c40ce93Copy full SHA for c40ce93
src/graphql/journey.test.ts
@@ -2243,6 +2243,22 @@ describe('named vectors test', () => {
2243
});
2244
2245
2246
+ it('should perform a hybrid query on the rating vector', () => {
2247
+ return client.graphql
2248
+ .get()
2249
+ .withClassName(className)
2250
+ .withHybrid({
2251
+ query: 'Best',
2252
+ targetVectors: ['rating'],
2253
+ })
2254
+ .withFields('rating')
2255
+ .do()
2256
+ .then((res) => {
2257
+ expect(res.data.Get.NamedVectorTest).toHaveLength(3);
2258
+ expect(res.data.Get.NamedVectorTest[0].rating).toBe('Best');
2259
+ });
2260
2261
+
2262
describe('destroy', () => {
2263
it('tears down NamedVectorTest class', () => {
2264
return client.schema.classDeleter().withClassName(className).do();
0 commit comments