Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple 1 way relationships between collections #1076

Merged

Conversation

stnguyen90
Copy link
Contributor

@stnguyen90 stnguyen90 commented May 6, 2024

What does this PR do?

Because two way key is not exposed or sent, the API defaults to the related collection's ID as the two way key. As such, if you try to add another one, it will fail because the two way key is already in use.

Test Plan

Multiple many to one relationship attributes:

image

Multiple one to one relationship attributes:

image

Multiple one to many:

image

Related PRs and Issues

Have you read the Contributing Guidelines on issues?

Yes

Because two way key is not exposed or sent, the API defaults to the
related collection's ID as the two way key. As such, if you try to add
another one, it will fail because the two way key is already in use.
Copy link

vercel bot commented May 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
console-cloud ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2024 8:24pm
console-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2024 8:24pm
console-preview-cloud ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2024 8:24pm

@TorstenDittmann TorstenDittmann merged commit 128eab1 into main May 14, 2024
5 checks passed
@TorstenDittmann TorstenDittmann deleted the fix-8059-error-creating-many-to-one-relationship branch May 14, 2024 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product / databases Fixes and upgrades for the Appwrite Databases
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants