Hello,
Any help on the below would be greatly appreciated.
Expected behavior
The structure inside a “Related Data” view is referencing the ObjectId (mongo db) of another collection, I’d expect the ID being displayed to be a link to the referenced document.
Actual behavior
The structure inside a “Related Data” view is referencing the ObjectId (mongo db) of another collection, however the ID is being displayed as a plaintext string and not generating a link like it normally does.
Here is my schema with the ObjectID reference on the sourceMapping
field.
const schema = mongoose.Schema(
{
filename: String,
s3_path: String,
pipeline_files: [
{
bucket: {
type: String,
enum: [
"emitwise-pipeline-data-production",
"emitwise-pipeline-data-staging",
"emitwise-pipeline-data-local",
],
},
key: String,
source_mapping: { type: mongoose.Schema.Types.ObjectId, ref: 'sourceMapping' },
_id: false,
},
],
...
...
Here is the ID being displayed as plaintext and not clickable.
Failure Logs
Please include any relevant log snippets, if necessary.
Context
Please provide any relevant information about your setup.
- Package Version:
- Express Version:
- Sequelize Version:
- Database Dialect:
- Database Version:
- Project Name: