Code Monkey home page Code Monkey logo

Comments (11)

srinivasankavitha avatar srinivasankavitha commented on June 22, 2024

Hi we don't support this capability in the DGS framework today.

from dgs-codegen.

TLmaK0 avatar TLmaK0 commented on June 22, 2024

@dingyo777 I think it is supported in the 6.x versions #426

from dgs-codegen.

dingyo777 avatar dingyo777 commented on June 22, 2024

@TLmaK0 Thank you for sharing! I will try with it. But it seems that generated kotlin codes with gradle task generateJava not applicable with GraphQLMultiQueryRequest.

FYI, my config at kotlin project is as follows:

generateClient = true
generateDataTypes = true
generateKotlinNullableClasses = true
generateKotlinClosureProjections = true

from dgs-codegen.

dingyo777 avatar dingyo777 commented on June 22, 2024

@mbossenbroek Would you give me some guideline or example? My question is how multiple queries or mutations call at once in kotlin2.

from dgs-codegen.

dingyo777 avatar dingyo777 commented on June 22, 2024

@srinivasankavitha or do you have a plan to support batch queries or batch mutations in kotlin version with code-gen? Currently, with generated types, projection and DgsClient, it is hard to call mutiple queries or mutations at once.

from dgs-codegen.

srinivasankavitha avatar srinivasankavitha commented on June 22, 2024

Hi @dingyo777 - no we don't use this feature at all internally, so will not be prioritizing it.

from dgs-codegen.

mbossenbroek avatar mbossenbroek commented on June 22, 2024

Yeah, I never added support for that in the newer kotlin query api, but I am interested in adding it for a use case that I have... That said, I likely won't get around to adding it for a few months, so not sure if that helps you at all :/

from dgs-codegen.

dingyo777 avatar dingyo777 commented on June 22, 2024

@srinivasankavitha @mbossenbroek
Thank you for your answer. 👍 It will be very helpful if batch query or mutation is possible in newer Kotlin version. Not only me but also others who asked this feature previously. :)

from dgs-codegen.

mbossenbroek avatar mbossenbroek commented on June 22, 2024

I should also note that I'm open to contributions if you'd like to throw up a PR. I'd be more than happy to get you started if you're interested in that route.

from dgs-codegen.

mbossenbroek avatar mbossenbroek commented on June 22, 2024

@dingyo777 could you confirm that this would work for your needs? https://github.com/Netflix/dgs-codegen/pull/676/files#diff-91edda77a8b25bbc8aa8f2fc0e7f194b330ccca58db4ca1f0adb7aa5b7d123db

from dgs-codegen.

mbossenbroek avatar mbossenbroek commented on June 22, 2024

This is released now

from dgs-codegen.

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.