-
I'm trying to create a self-relationship/subcategory using Adonisjs, but it returns the result []/null. is there any solution? models
controllers
migrations
thanks |
Beta Was this translation helpful? Give feedback.
Answered by
sultan216
Oct 17, 2022
Replies: 2 comments 1 reply
-
Can you share the complete migration file? |
Beta Was this translation helpful? Give feedback.
1 reply
-
I'm sorry, it turned out that there was an error on my part. I tried removing the primary() function in the increment id and I changed table.BigInteger to table.integer and it worked. Thank you |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Soel30
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm sorry, it turned out that there was an error on my part. I tried removing the primary() function in the increment id and I changed table.BigInteger to table.integer and it worked. Thank you