Comments (3)
@capaj custom scalar type mapping implemented in v1.2.0. Object mapping is more tricky and probably lies outside of the scope of this project.
from graphql-typed-client.
another thought-it would be nice to be able to turn it off/override per query. There might be cases when you query data you might not want to deserialize.
So ideally I could pass the same hashmap as another argument to query/mutation/subscription. If I pass a falsy value it should just give me raw JSON values even if I have top level deserialization map.
from graphql-typed-client.
would be nice to be able to turn it off/override per query
@capaj can you describe the case where you would want both deserialized and original values (or same types deserialized differently) in the same application?
Rendering custom types based on some deserialization mapping provided during client generation seems easy enough, but I don't see an easy way to do it dynamically during execution
from graphql-typed-client.
Related Issues (20)
- apply typeMapper to input types in variables HOT 1
- Execution result type includes the full schema HOT 15
- support glob pattern for schema loading
- use 'unknown' instead of 'any'
- "TypeError: Object(...) is not a function" exception when importing the generated client in Next.JS app HOT 2
- Cli process always is finished with 0 code HOT 1
- Prettier dependency HOT 7
- GraphQL Aliases HOT 4
- Suggestion: Generate client from TypeGraphql models HOT 2
- 'Observable' refers to a value, but is being used as a type here.
- Question/FR: How to get graphql query string? HOT 2
- Strong typed return value HOT 2
- Reduce bundle size HOT 1
- replace ws with isomorphic-ws for subscription in browser HOT 2
- graphql subscription is not working
- Custom scalar type mapping does not work with relative paths on Windows
- Generated code can have implicit any
- Don't delete the whole content of the output folder
- Comparison of this library with graphql-zeus?
- Serialization of array of custom scalars fails
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 graphql-typed-client.