Skip to content

Better way to covert String to Float Field #1009

Closed Answered by hayes
ccfiel asked this question in Q&A
Discussion options

You must be logged in to vote

That's pretty subjective. Personally I'd put it in a resolver, but if you are doing it a lot, doing it in a scalar might make more sense, since you won't need to repeat it all over the place. The downside is that any string will be accepted as a valid value for any float field, which reduces type safety a bit.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@ccfiel
Comment options

@hayes
Comment options

hayes Sep 4, 2023
Maintainer

Answer selected by ccfiel
@ccfiel
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants