> For the complete documentation index, see [llms.txt](https://enhancio.gitbook.io/reactflow-for-bubble.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://enhancio.gitbook.io/reactflow-for-bubble.io/guides/getting-updated-data.md).

# 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)
