System Information
-
Strapi Version: 3.6.0
-
Operating System: Linux
-
Database: MongoDB
-
Node Version: 14.16.1
-
NPM Version: 16.14.12
-
Yarn Version:
I have defined 3 main collection types:
timesheets
clients
projects
now, i have a 1:1 link from timesheets both to clients and projects (as well as users)
I can see that in the database the id for projects is correct, but when i query the database for timesheets only clients and users are populated, whereas projects are null. Any idea?
Can you share your {model}.settings.json
files for timesheets, clients, projects?
Can you also share the code for that query?
here it is:
{
“kind”: “collectionType”,
“collectionName”: “time_sheets”,
“info”: {
“name”: “time-sheet”,
“description”: “”
},
“options”: {
“increments”: true,
“timestamps”: true,
“draftAndPublish”: true
},
“pluginOptions”: {},
“attributes”: {
“from”: {
“type”: “datetime”
},
“until”: {
“type”: “datetime”
},
“users_permissions_user”: {
“plugin”: “users-permissions”,
“model”: “user”
},
“description”: {
“type”: “string”
},
“client”: {
“model”: “clients”
},
“project”: {
“model”: “projects”
},
“approved”: {
“type”: “boolean”
},
“work_with”: {
“type”: “string”
},
“work_as”: {
“type”: “enumeration”,
“enum”: [
“Engineer”,
“Assistant”,
“Both”,
“AutoCAD”
]
}
}
}
these are the two collections in question and they seem to be configured the same, but… i get different results?
cheers,
Valerio
Any one having a clue on this issue? I can’t seems to wrap my head around this issue