You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i installed postgraphql wich talks to postgres db directly not through the loopback models and i was able to run a query filtering by properties on the related/nested models.
Hello
I am doing some test queries using your plugin over a loopback application.
I want to apply a where filter to the related model .
Does the "where" parameter of type JSON works with related model properties ?
In the below example: the second "where" filter (where: {name: "SMH"} ) on the related model is not working ..
query ListEntities($where: JSON!) {
allEntityRoles(where: $where, first: 10) {
totalCount
EntityRoles {
id
entity(where: {name: "SMH"}) {
edges {
node {
id
entCode
name
}
}
}
}
}
variable:
{
"where": {
"CompanyId": "aa5d2125-bcfc-4808-ae55-5aec699f3509",
"EntityRoleTypeId": "f3e03826-28cb-4d72-ad71-7b5e174dbfb9"
}
}
The text was updated successfully, but these errors were encountered: