How to implement a custom FilterInputType<> with ValueObjects #7041
Unanswered
dotnetcadet
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Scenario
I'm wanting to extend my ASP.NET Web API capabilities to include GraphQL and ran into an issue while starting down this path. The services I've implemented heavily uses DDD (Domain-Driven Design) to the point where properties don't necessarily use native runtime types (
string
,int
,long
, etc.,). There are a couple reasons for this, but mainly to push some of domain logic into the types themselves.Below is a struct that is used quite a bit and an example above it of it's use. Granted the business logic has been removed it demonstrates the use case.
Issue:
When implementing custom filtering I am able to use most of the binary operators, but when I try to do a
contains
I get the error below. Is there a way around this?Beta Was this translation helpful? Give feedback.
All reactions