# Getting Updated Data

Choose how to capture user changes:

## Option 1: Real-time Events - Update database immediately as users interact

* Use [Node changed position](/reactflow-for-bubble.io/element-reference/events.md#node-changed-position) event to save coordinates instantly
* Use [Edge added](/reactflow-for-bubble.io/element-reference/events.md#edge-added)/[removed](/reactflow-for-bubble.io/element-reference/events.md#edge-removed) events to update relationships in real-time
* Best for collaborative editing and immediate data persistence

## Option 2: Bulk Export - Get all changes at once

* Use [Export to JSON](/reactflow-for-bubble.io/element-reference/actions/export-to-json.md) action to capture complete current state
* Perfect for saving final layouts or sending data via API
* Lets users make multiple changes before committing to database

## Control User Interactions

Use "Interaction behavior" fields to customize what users can do:

* Toggle node dragging on/off with [Nodes draggable](/reactflow-for-bubble.io/element-reference/fields.md#nodes-draggable)
* Enable/disable edge creation with [Nodes connectable](/reactflow-for-bubble.io/element-reference/fields.md#nodes-connectable)
* Control element selection with [Elements selectable](/reactflow-for-bubble.io/element-reference/fields.md#elements-selectable)


---

# 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://enhancio.gitbook.io/reactflow-for-bubble.io/guides/getting-updated-data.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.
