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
Prior to this change we serialized arguments when building up the
selection set, and stored the results of that serialization in the
Argument struct. This worked, but led to an awkward API where you build
the selection set, convert it to a QueryBody which could fail, and
_then_ convert it to JSON which could also fail.
This updates the Argument struct to store a `Box<SerializableArgument>`
instead. This simplifies things: we can now serialize the Query
directly, and the Argument serialization will happen there, leading to a
single point of failure rather than multiple.
Also updated the serialize & encode functions to return `Box<Error> `
rather than `()`.
Fixes#42Fixes#45
There are some places where I've been lazy and stuck unwraps. Should remove them
The text was updated successfully, but these errors were encountered: