GithubHelp home page GithubHelp logo

Comments (3)

kaqqao avatar kaqqao commented on June 14, 2024

EDIT: Everything I said here was completely off topic, so I removed it not to confuse future readers.

from graphql-spqr.

IceBlizz6 avatar IceBlizz6 commented on June 14, 2024

Looks like adding jackson-module-kotlin solved this issue.
I like your idea of having a kotlin module for spqr.
I may be able to contribute something.
Right now i have:

  • Type mapper that applies Kotlin nullability
  • Resolver builder that removes/ignores Companion objects
  • Type mapper that allows kotlin Flow to be used for subscriptions.
  • Schema transformer that preserves original kotlin property name, rather than losing 'is' and 'get' prefixes.

Maybe we should continue this in a new discussion as i think this specific issue has been solved.

from graphql-spqr.

kaqqao avatar kaqqao commented on June 14, 2024

Ooh, sorry, I was completely off. All I said was about output types, and you were talking about input types. Yes, SPQR delegates the discovery of input fields to Jackson (or Gson, kind of). This way it avoids the insidious problem of everything seeming ok in the schema but failing to deserialize at runtime. Most Jackson configs should thus transparently work. So if you add the Jackson Kotlin module, making Jackson aware of Kotlin's quirky accessor naming, it should just start working in SPQR too, yeah.

And yes, let's continue the Kotlin SPQR module discussion elsewhere.

from graphql-spqr.

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.