-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Relationships throwing error #3164
Comments
May be related to: #2828 And it seems to work fine with MongoDB, just not Knex/Postgres |
I was able to fix the "Cannot destructure propety 'rel' of 'fieldAdapter'" error. I didn't have the User relationship added to the ChannelItem and ShopItem. Once added, the error went away. The
error is still there for the Match list. It works on Mongoose but throws error on Knex/Postgres. |
It looks like there hasn't been any activity here in over 6 months. Sorry about that! We've flagged this issue for special attention. It wil be manually reviewed by maintainers, not automatically closed. If you have any additional information please leave us a comment. It really helps! Thank you for you contribution. :) |
@junaid33 in case you are still wondering, I did stumbled with this issue today and after some review I realized this is a bug that happens for lists which first field is a relationship and the relationship database id is a foreign key to the list (the table doesn't have the field). This is fixed by changing some code in |
Updated PR |
Keystone 5 has officially moved into active maintenance mode as we push towards the next major new version Keystone Next, you can find out more information about this transition here. In an effort to sustain the project going forward, we're cleaning up and closing old issues such as this one. If you feel this issue is still relevant for Keystone Next, please let us know. |
Bug report
Describe the bug
I'm trying to create relationships between multiple lists but the Admin UI is throwing an error.
To Reproduce
Steps to reproduce the behaviour. Please provide code snippets or a repository:
mutation {
createUser(
data: {
name: "Keystone"
email: "[email protected]"
password: "password"
}
) {
id
name
email
}
}
Expected behaviour
OrderItem, ChannelIem, and Match should not have errors and should be able to be created.
Screenshots
These are screenshots on the error
System information
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: