graphql-compose / graphql-compose/graphql-compose-mongoose

Nested filter always returns all entries

Open
#285 3 comments 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
706
Forks
98
PR merge metrics
No merged PRs in 30d

Description

I try to filter by a nested field of type boolean. Autosuggestion works fine, but the filter does nothing. All records where shown in the results.

```
{
pages(filter:{response:{hasErrors:true}}) {
projectID
url
session
response {
hasErrors
status
headers
}
}
}
```

schemaComposer looks like that:

```
schemaComposer.Query.addFields({
pages: PagesTC.mongooseResolvers.findMany(),
page: PagesTC.mongooseResolvers.findOne(),
})

const graphqlSchema = schemaComposer.buildSchema()
export default graphqlSchema
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.