Skip to content

Easy way to convert id to String from Number? #3655

Answered by JoviDeCroock
GollyJer asked this question in Q&A
Discussion options

You must be logged in to vote

There's a few options here, you can use a resolver in the normalized cache, you can use something like the community driven scalars exchange (seems unmaintained now but the idea's are still there) or you can write your own exchange that similar to the scalar exchange deeply traverses your graph and remaps the data: https://github.com/clentfort/urql-custom-scalars-exchange/blob/main/src/index.ts

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GollyJer
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