forest-express-mongoose icon indicating copy to clipboard operation
forest-express-mongoose copied to clipboard

[*] Charts - ForestAdmin gets confused when dealing with model references in charts

Open roopakv opened this issue 7 years ago • 0 comments

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.

roopakv avatar Oct 16 '18 10:10 roopakv