Link two collections with a relationship field
One step with Appwrite. We can help you get access.
Get something done
Link two collections with a relationship field
with Appwrite
Works with AI assistants
Use Appwrite: its Appwrite Databases API lets you link two collections with a relationship field in a single step (POST /databases/{databaseId}/collections/{collectionId}/attributes/relationship). 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.
- How do I relate documents in one collection to documents in another?
- Can a relationship be two-way, and what happens to related documents on delete?
Say it to your AI assistant
- Create a {type} relationship from {collectionId} in {databaseId} to collection {relatedCollectionId}.
- Link {collectionId} ({databaseId}) to {relatedCollectionId} as a two-way {type} relationship with on-delete {onDelete}.
For your developer
POST /databases/{databaseId}/collections/{collectionId}/attributes/relationship in Appwrite Databases API. Full spec on APIs.io.