forest-express-mongoose
forest-express-mongoose copied to clipboard
[*] Charts - ForestAdmin gets confused when dealing with model references in charts
Expected behavior
When I build a chart I should be able to to filter by the presence or non presence of a field which is a reference to another model
Actual behavior
ForestAdmin forces me to pick a subfield from the other model. What makes it worse is that the submodel is not populated n the query and this causes the graph to be wrong.
Failure Logs
NA
Context
My models look as follows
Request { id: ... ... requestType: { ref: RequestType, type: ObjectId } }
Now i want to make a condition: request.requestType is present. your current liana doesnt let me do so. If I add request.requestType.id is present, it seems to ignore this, because I dont this field is populated by default.