WeeDB Object Update

Update a WeeDB object

Overview

The WeeDB Object Update node allows you to update an object in a WeeDB database by specifying its ID and the new data. Optionally, if the object does not exist, you can choose to create it instead of updating. This node is useful for workflows that need to modify or upsert (update or insert) records in a WeeDB instance.

Common scenarios:

  • Updating user profiles or settings stored in WeeDB.
  • Upserting configuration objects based on incoming data.
  • Automating data synchronization between systems using WeeDB as storage.

Example use case:
You receive updated user information from an API and want to ensure the corresponding record in WeeDB is updated, or created if it doesn't already exist.


Properties

Display Name Type Meaning
ID String The unique identifier of the object to fetch and update in WeeDB.
Data JSON The object data to update. This should be a valid JSON object.
Cerate Boolean If set to true, creates the record if it does not exist (upsert logic).

Output

The node outputs a JSON array with a single object containing the updated (or created) item. The structure of the output is:

[
  {
    "item": { /* The updated or newly created object as returned by WeeDB */ }
  }
]
  • The exact fields inside item depend on your WeeDB schema and the data you provided.

Dependencies

  • WeeDB Connection: Requires a valid WeeDB connection credential (weeDBConnection) with access to the target database.
  • External Service: Relies on the WeeDB service being available and accessible.
  • n8n Configuration: Ensure the WeeDB credential is configured in n8n under the name weeDBConnection.

Troubleshooting

Common issues:

  • "Failed to initialize WeeDB" error:

    • Cause: The node could not connect to the specified WeeDB database.
    • Resolution: Check your weeDBConnection credentials and ensure the database ID is correct and reachable.
  • Invalid JSON in Data property:

    • Cause: The "Data" field must contain valid JSON.
    • Resolution: Double-check your input for syntax errors or malformed JSON.
  • Missing ID:

    • Cause: The "ID" field is required to identify which object to update.
    • Resolution: Provide a valid string identifier.

Links and References

Discussion