# Error using weaviate with langchain.js

**URL:** <https://forum.weaviate.io/t/error-using-weaviate-with-langchain-js/2782>\
**Category:** Support\
**Created:** [June 24, 2024, 3:41pm UTC](https://forum.weaviate.io/t/error-using-weaviate-with-langchain-js/2782 "2024-06-24T15:41:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![uma\_shankar](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/uma_shankar/32/1791_2.png) [@uma\_shankar](https://forum.weaviate.io/u/uma_shankar)\
**Post date:** [June 24, 2024, 3:41pm UTC](https://forum.weaviate.io/t/error-using-weaviate-with-langchain-js/2782/1 "2024-06-24T15:41:31Z")

</div>

My cluster’s name is: russel

Why do I get the following problem while try to do this:

```auto
let builder = this.client.graphql
                .get()
                .withClassName(this.indexName)
                .withFields(`${this.queryAttrs.join(" ")} _additional { distance vector }`)
                .withNearVector({
                    vector: query,
                    distance: filter?.distance,
                })
                .withLimit(k);
            if (this.tenant) {
                builder = builder.withTenant(this.tenant);
            }
            if (filter?.where) {
                builder = builder.withWhere(filter.where);
            }

```

This statement gives me this error:  
builder = builder.withWhere(filter.where);

Error in similaritySearch Error: Cannot query field “russel” on type “GetObjectsObj”. Did you mean “Russel”?: {“response”:{“errors”:[{“locations”:[{“column”:6,“line”:1}],“message”:“Cannot query field "russel" on type "GetObjectsObj". Did you mean "Russel"?”,“path”:null}],“status”:200,“headers”:{}},“request”:{“query”:"{Get{russel(nearVector:

---

<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 24, 2024, 6:13pm UTC](https://forum.weaviate.io/t/error-using-weaviate-with-langchain-js/2782/2 "2024-06-24T18:13:09Z")

</div>

Hi!

Can you check if all properties that gets joined in `${this.queryAttrs.join(" ")` has it’s equivalent property in the collection?

Also, we strongly suggest using the new python and typescript version as they deliver a lot of improvements over is previous version.

Thanks!

---

<div class="post-metadata">

**Author:** ![uma\_shankar](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/uma_shankar/32/1791_2.png) [@uma\_shankar](https://forum.weaviate.io/u/uma_shankar)\
**Post date:** [June 26, 2024, 8:09am UTC](https://forum.weaviate.io/t/error-using-weaviate-with-langchain-js/2782/3 "2024-06-26T08:09:55Z")

</div>

Solution. New version of Weaviate.
