Open gdarchen opened 1 year ago
Hi,
are you able to reproduce this on a fresh installation? I can't reproduce locally (on master)
Hi @michaelbromley 👋
I was able to reproduce it on gdarchen/real-world-vendure (chore/filter-on-custom-field
branch), especially in this commit.
I just added a custom field, generated the migration for it and the types.
Then, in the product-review-admin.resolver.ts
file, I try to call the findAll
method of the CollectionService
with a filter on the added custom field, and I have the following error:
We might not filter correctly 🤷
Describe the bug We would like to filter collections on a custom field.
But in the
ListQueryOptions<Collection>
type, in thefilter
parameter, we can only filter onPrimitiveFields<Collection>
, and there is no way to filter on that custom field.To Reproduce Steps to reproduce the behavior:
Expected behavior We would like to be able to filter on custom fields the same way we do for primitive types (such as
slug
, etc.).Environment (please complete the following information):
1.9.6
18.15
postgres
Additional context Add any other context about the problem here.