# Updating the replica

{% hint style="success" %}
This is the official documentation of the `@forestadmin/agent` Node.js agent.
{% endhint %}

In the [minimal example](/developer-guide-agents-nodejs/data-sources/custom/replication.md#minimal-example), we've seen that data was loaded once, never to be updated again.

This is unlikely to be the case in a real-world scenario, as you may want your Forest Admin agent to display up-to-date data.

Three ways to achieve this are available, they can be used independently or in combination:

* [Refetch all records periodically](/developer-guide-agents-nodejs/data-sources/custom/replication/updates/scheduled-rebuild.md)
* [Change polling (using Forest Admin events)](/developer-guide-agents-nodejs/data-sources/custom/replication/updates/change-polling.md)
* [Change pushing (using target API events)](/developer-guide-agents-nodejs/data-sources/custom/replication/updates/push.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.forestadmin.com/developer-guide-agents-nodejs/data-sources/custom/replication/updates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
