capabilities.work

Change the on-delete behaviour of a relationship

One step with Appwrite. We can help you get access.

Get something done

Change the on-delete behaviour of a relationship

Works with AI assistants

Use Appwrite: its Appwrite Databases API lets you change the on-delete behaviour of a relationship in a single step (PATCH /databases/{databaseId}/collections/{collectionId}/attributes/relationship/{key}). Appwrite also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.

  • Can I switch an existing relationship to cascade deletes to related documents?
  • How do I rename a relationship attribute that already exists?
Say it to your AI assistant
  • Set on-delete behaviour of relationship {key} on {collectionId} in {databaseId} to {onDelete}.
  • Rename relationship field {key} in {collectionId} ({databaseId}) to {newKey}.
For your developer

PATCH /databases/{databaseId}/collections/{collectionId}/attributes/relationship/{key} in Appwrite Databases API. Full spec on APIs.io.