Replies: 1 comment
-
It is better to implement a test for this. And if it fails I will pick up your code and make it work or propose changes if you want to implement yourself |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm rendering my schema definitions (both inputs and outputs) dynamically, based on database schema.
For example if my database table has fields
... then I'm dynamically creating input filters that provide different functionality for each field depending on field type, e.g.
id
will have comparison but noisNull
filtersname
will include string comparison optionsage
will have numerical comparisons includingisNull
items
is an array and may includeisEmpty
,contains
filters.I can create such an input filters object, but I don't know how to extract values supplied in these input filters during the request processing.
What kind of type should I define for such a case?
Documentation is not very helpful either.
The page has an example of defining an input object without a concrete generic type but samples in actual code in repository all have generics:
So my question is:
I'm currently maintaining a hacked version of the FSharp.Data.GraphQL codebase where I added support for
but now my project is getting some traction and I need to move away from my hackish solution that breaks on every merge from upstream.
Beta Was this translation helpful? Give feedback.
All reactions