Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
roopakv opened this issue Oct 16, 2018 · 0 comments

Comments

@roopakv
Copy link
Contributor

roopakv commented Oct 16, 2018

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.

@arnaudbesnier arnaudbesnier changed the title ForestAdmin gets confused when dealing with model references in charts [*] Charts - ForestAdmin gets confused when dealing with model references in charts May 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant