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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: Error creating many to one relationship #8059

Open
2 tasks done
stnguyen90 opened this issue May 1, 2024 · 0 comments
Open
2 tasks done

馃悰 Bug Report: Error creating many to one relationship #8059

stnguyen90 opened this issue May 1, 2024 · 0 comments
Labels
bug Something isn't working feature / relationships Fixes and upgrades for database relationships product / databases Fixes and upgrades for the Appwrite Database.

Comments

@stnguyen90
Copy link
Contributor

stnguyen90 commented May 1, 2024

馃憻 Reproduction steps

  1. Create 2 collections: parent and child
  2. Create a one way many to one relationship from parent to child
  3. Create another one way many to one relationship from parent to child

馃憤 Expected behavior

The attribute creates.

馃憥 Actual Behavior

An error occurs:

image

The error is confusing because it says the "Attribute with the requested key already exists. Attribute keys must be unique, try again with a different key.", but I did specify a different attribute key.

The conflict is actually with the two way key, but that shouldn't matter because:

  1. no attribute is created in the related collection
  2. it's a one way attribute.

Related discord thread: https://discord.com/channels/564160730845151244/1235084861740679218

馃幉 Appwrite version

Version 1.5.x

馃捇 Operating system

Linux

馃П Your Environment

No response

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@stnguyen90 stnguyen90 added bug Something isn't working product / databases Fixes and upgrades for the Appwrite Database. feature / relationships Fixes and upgrades for database relationships labels May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature / relationships Fixes and upgrades for database relationships product / databases Fixes and upgrades for the Appwrite Database.
Projects
None yet
Development

No branches or pull requests

1 participant