Sydney-o9
(Sydney O9)
1
Hi Team,
I have noticed Dgraph does not have any type safety in place when it comes to the vars passed along to a query.
For example, in Slash, this:
Will send the following to Dgraph backend:
May I understand why that is?
May I suggest that we may it obvious on the client side that we don’t support different value types:
This surprise can be quite dangerous:
See the conversion to a string…
I suggest we change the signature to vars?: { [k: string]: string },
and avoid converting to string on behalf of the user?
chewxy
(chewxy)
4
This has been accepted as a ticket btw @Sydney-o9
2 Likes