Skip to content

How to Set Foreign Key For hasMany Relationship? Please I really need help. #2162

Answered by divine
JenuelDev asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

Try changing "lesson_id": ObjectId("5fd84e467f180d5db02be90f") to string type "lesson_id": "5fd84e467f180d5db02be90f"

Thanks!

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@JenuelDev
Comment options

@divine
Comment options

@JenuelDev
Comment options

@divine
Comment options

Answer selected by divine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants