Is there a way to access default ScalarRef
instances?
#1175
Unanswered
justinadkins
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
-
I currently have a generic factory function for building object references but have run into some difficulty getting this to work with scalars. A simplified example of my original implementation looks like this:
I cannot seem to find a way to pass in the string value for a scalar (e.g. "Int") and have TS remain happy. I thought the simplest solution would then be to use a
ScalarRef
instance. I can't seem to find a way to access the ones that aren't custom. Does such a thing exist?I welcome other feedback for tackling this problem.
Beta Was this translation helpful? Give feedback.
All reactions