diegohaz / diegohaz/rest

How can i use ref to another models besides from User?

Open
#204 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.8k
Forks
304
PR merge metrics
No merged PRs in 30d

Description

i want to use ref to ex: Job models, but its give some error say: job: path "job" is required.
here's my code:

`tes: {
type: Schema.ObjectId,
ref: 'Job',
required: true
},`

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no repository files or tests and provides only a schema snippet. Start by locating the model-reference handling and reproducing the reported "job: path \"job\" is required" error; done would require a documented or tested resolution for references to Job models.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, mongodb, node.js
Domain
backend, database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.