Replies: 2 comments 1 reply
-
With |
Beta Was this translation helpful? Give feedback.
0 replies
-
@JoviDeCroock TIL, thanks for this 💡 One issue I'm seeing is that when user_id becomes Is there a way to narrow it down to the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently with fuse, every ID that gets returned back is a base64 encoded string
This can be annoying when you are doing a mutation and sending a ID field as part of the mutation payload
To solve this, I'm writing a custom
resolveID
function that tries to extract the id part if its a base64 string otherwise returns the original id.As a result, this needs to be called everytime there is a drizzle update/insert occurs which is annoying
Example code
I'm not sure how hard it is to change the typings as lots of the fuse code builds ontop of pothos but one option could be adding a 2nd argument config object to
inputType
eg:this option would auto resolve ID fields
Beta Was this translation helpful? Give feedback.
All reactions