Giter Site home page Giter Site logo

Comments (3)

helios1138 avatar helios1138 commented on May 27, 2024 1

@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.

capaj avatar capaj commented on May 27, 2024

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.

helios1138 avatar helios1138 commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.