# Searching named vectors from the Javascript graphQL client

**URL:** <https://forum.weaviate.io/t/searching-named-vectors-from-the-javascript-graphql-client/2744>\
**Category:** Support\
**Tags:** typescript\
**Created:** [June 19, 2024, 1:27am UTC](https://forum.weaviate.io/t/searching-named-vectors-from-the-javascript-graphql-client/2744 "2024-06-19T01:27:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hugo](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/hugo/32/1770_2.png) [@Hugo](https://forum.weaviate.io/u/Hugo)\
**Post date:** [June 19, 2024, 1:27am UTC](https://forum.weaviate.io/t/searching-named-vectors-from-the-javascript-graphql-client/2744/1 "2024-06-19T01:27:54Z")

</div>

### Description

I couldn’t find any information for running a nearVector search using the javascript graphQL client when querying a named vector

for a non-named vector, the query would look like this (below):

```auto
const response = await client.graphql
  .get()
  .withClassName('Publication')
  .withFields('name _additional {certainty}')
  .withNearVector({
    vector: [0.1, -0.15, 0.3, ...]   
  })
  .do();
console.log(response);

```

Can someone share a sample code showing how a target vector can be specified by name?

### Server Setup Information

- Weaviate Server Version: 1.25.2
- Deployment Method: [weaviate.io](http://weaviate.io)
- Multi Node? Number of Running Nodes:
- Client Language and Version: js/ts
- Multitenancy?: yes

### Any additional Information

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [June 19, 2024, 1:41pm UTC](https://forum.weaviate.io/t/searching-named-vectors-from-the-javascript-graphql-client/2744/2 "2024-06-19T13:41:47Z")

</div>

hi @Hugo !

Welcome to our community 🤗

Check an example here:

> **[Multiple vectors | Weaviate - Vector Database](https://weaviate.io/developers/weaviate/config-refs/schema/multi-vector#graphql)**
>
> Syntax

For instance:

```auto
  var result = await client.graphql
  .get()
  .withClassName('WineReviewNV')
  .withNearVector({
    vector: [1,2,3,4],
    targetVectors: ['title_country'],
  })
  .withLimit(2)
  .withFields('title review_body country')
  .do();

```

Notice that this is the typescript v2 version, while we already have the v3 that is way better on pretty much all features 😉

Check here more info on that:

> **[The Weaviate v3 Typescript Client goes GA | Weaviate - Vector Database](https://weaviate.io/blog/typescript-client-stable-release)**
>
> We're pleased to share that the Weaviate v3 TypeScript client is now stable!

Let me know if this helps!

Thanks!
