---
title: Get Batch Predictions
sidebarTitle: Get Batch Predictions
---

## Description

The `batchQuery()` function fetches batch predictions from the model by joining it with the data table.

## Syntax

Here is the syntax:

```
await model_name.batchQuery(batchQueryOptions);
```

<Tip>
Here are some useful links:
- [training options](https://mindsdb.github.io/mindsdb-js-sdk/interfaces/models_trainingOptions.TrainingOptions.html),
- [query options](https://mindsdb.github.io/mindsdb-js-sdk/interfaces/models_queryOptions.QueryOptions.html),
- [batch query options](https://mindsdb.github.io/mindsdb-js-sdk/interfaces/models_queryOptions.BatchQueryOptions.html).
</Tip>
