This seems to be a bug but I can't tell. #2096
carsonwright
started this conversation in
General
Replies: 2 comments 3 replies
-
It is forcing user_id because you specifically told it so by foreignKey: 'userId'. I don't see anything wrong here. Answers should have a user_id field. |
Beta Was this translation helpful? Give feedback.
3 replies
-
Hey @carsonwright! 👋 Could you please share the code that create this query? Also, takes note that AdonisJS expect you to have snake_cased fields inside your database (as per SQL convention), but it also transform them to camelCase inside your code (as per JS convention). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Why is it forcing a user_id relationship...?
Beta Was this translation helpful? Give feedback.
All reactions