You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Dgraph is kinda nice, in that it takes a schema and augments it with built-in resolvers that generally just work. However,
using Dgraph with genqlient is painful.
The specific problems arise with not omitting empty values. While this is painful for ints, and mostly painful for strings, it is possible to work around this problem with schema types by insisting on pointers.
This will effectively break the query as it is asking for a silly request which is not self-consistent: asking for something that is eq to a string and also le, ge, lt, and gt the empty string makes no sense.
Describe the solution you'd like
I really don't know what solution I'd like, other than to be able to (perhaps by-type) handle strings as pointers.
That, or a way to indicate what I'd like to have rendered somehow...
Describe alternatives you've considered
I can write my query to take the name and digest, but this creates a lot of "queryByNameAndDigest()" type almost-identical queries.
Additional context
This is just one example of where rendering too much JSON gets me into trouble with Dgraph...
The text was updated successfully, but these errors were encountered:
Hmm, this seems similar to some of the issues that have come up with Hasura. Maybe take a look at #272 and (a) see if any of the existing config options or workarounds discussed there work for you and (b) comment on what overlaps or differs? Unfortunately I haven't had time to look back at the latest discussion there but I think there are some good ideas.
Is your feature request related to a problem? Please describe.
Dgraph is kinda nice, in that it takes a schema and augments it with built-in resolvers that generally just work. However,
using Dgraph with genqlient is painful.
The specific problems arise with not omitting empty values. While this is painful for ints, and mostly painful for strings, it is possible to work around this problem with schema types by insisting on pointers.
However, a filter is defined like this:
This query:
produces a request like this:
This will effectively break the query as it is asking for a silly request which is not self-consistent: asking for something that is eq to a string and also le, ge, lt, and gt the empty string makes no sense.
Describe the solution you'd like
I really don't know what solution I'd like, other than to be able to (perhaps by-type) handle strings as pointers.
That, or a way to indicate what I'd like to have rendered somehow...
Describe alternatives you've considered
I can write my query to take the name and digest, but this creates a lot of "queryByNameAndDigest()" type almost-identical queries.
Additional context
This is just one example of where rendering too much JSON gets me into trouble with Dgraph...
The text was updated successfully, but these errors were encountered: