Comments (2)
Sticking this here just as a note, found this which would let us support more than just JSON: https://docs.rs/serde-value/0.7.0/serde_value/enum.Value.html
from cynic.
Investigated this and remembered the reason(s) I moved away from serde::Serialize in the first place:
- We can't easily derive it for InputObjects or Enums as I've not found a way to add additional derives from a derive.
- We can't ask the user to derive it as we need to rename fields etc (the user could do this, though then we'd need to parse the serde renames so we knew what fields things were.
serde::Serialize
is not object safe so my approach of Boxing a SerializableArgument would need reworked. Could look into erased_serde (or whatever it's called) but not worth it right now.
Although it might be worth looking into using serde_value
rather than serde_json
- for now I'm just going to close this and focus on more important bits of the API.
from cynic.
Related Issues (20)
- GraphQlResponse Clonable? HOT 4
- cynic-introspection SDL is missing directives
- Fix default root handling in cynic-codegen HOT 1
- Object in array in arguments attribute fails to compile
- Catch unintentionally recursive structs at compile time HOT 8
- Fully fledged example for working with Large APIs HOT 2
- Macro with generator.cynic-rs.dev functionality HOT 7
- Vec<String> variables or arguments not being passed correctly in when I upgrade from v1.0 to cynic v3.4.3 HOT 3
- Update reqwest to 0.12 HOT 5
- reinstate cli builds as part of releases
- Deprecate & remove pre 2.0.0 argument syntax
- Put spans on things somehow HOT 1
- admonishments in the book are broken
- Cannot retrieve `GraphQLResponse`s with `ErrorExtensions` properly HOT 4
- Dependency Dashboard
- Action Required: Fix Renovate Configuration
- How exactly to build wrapper libraries? HOT 2
- Optionally include GraphQL Query / Mutation in `querygen` output
- invalid type: integer ..., expected a string HOT 7
- Generator fails to handle a fragment
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cynic.