# Why .find() returns undifined

**URL:** <https://forum.wixstudio.com/t/why-find-returns-undifined/68556>\
**Category:** Ask the community\
**Tags:** wix-stores-backend, question, wix-headless, code, wix-stores\
**Created:** [February 10, 2025, 8:08pm UTC](https://forum.wixstudio.com/t/why-find-returns-undifined/68556 "2025-02-10T20:08:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zaman\_Ramazani](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/zaman_ramazani/32/105077_2.png) [@Zaman\_Ramazani](https://forum.wixstudio.com/u/Zaman_Ramazani)\
**Post date:** [February 10, 2025, 8:08pm UTC](https://forum.wixstudio.com/t/why-find-returns-undifined/68556/1 "2025-02-10T20:08:00Z")

</div>

**Problem**  
when I call this

> const wixClient = await wixClientServer();  
> const res = wixClient.products.queryProducts();  
> let data;  
> try {  
> data = await res.find();  
> } catch (e) {  
> }  
> console.log(data);

the data is undefind

---

<div class="post-metadata">

**Author:** ![ribbon](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/ribbon/32/96160_2.png) [@ribbon](https://forum.wixstudio.com/u/ribbon)\
**Post date:** [February 12, 2025, 3:02pm UTC](https://forum.wixstudio.com/t/why-find-returns-undifined/68556/2 "2025-02-12T15:02:52Z")

</div>

Hi, try using queryProducts() in this way:

```javascript
import { products } from "wix-stores.v2";

async function queryProducts() {
  const { items } = products.queryProducts().find();
}

```

You can find the `queryProducts()` method documented here: [Query Product Variants | Velo](https://dev.wix.com/docs/velo/api-reference/wix-stores-v2/products/query-product-variants)
