Skip to content

Commit 0163c13

Browse files
Dragomir-Ivanovsmyrman
authored andcommitted
Fix filtering on schema.Connection with MongoDB
1 parent 8bd1218 commit 0163c13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

schema/query/projection_evaluator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ func connectionQuery(pf ProjectionField, field string, id interface{}, validator
174174
if err != nil {
175175
return nil, fmt.Errorf("%s: invalid filter: %v", pf.Name, err)
176176
}
177-
q.Predicate = append(q.Predicate, p)
177+
q.Predicate = append(q.Predicate, p...)
178178
}
179179
if sort, ok := pf.Params["sort"].(string); ok {
180180
s, err := ParseSort(sort)

0 commit comments

Comments
 (0)