Comments (2)
Hi, will take a look tomorrow.
from graphqlcodegen.
I did some research with version 1.22 of the plugin.
If you want to use the Builder pattern for your generated types you'll need to add the following to your plugin configuration block to trigger the DGS kotlin2 codepath:
<generateKotlinNullableClasses>true</generateKotlinNullableClasses>
Client Generation
It looks like the client types are generated as Java, except for Entities, even if you've selected Kotlin.
You can generate Kotlin client types by setting the following in your configuration block.
<generateKotlinClosureProjections>true</generateKotlinClosureProjections>
.
Please keep in mind this plugin is a thin wrapper over the Netflix DGS codegen project to support the maven based community.
If you're curious this is the code that's actually generating the types:
https://github.com/Netflix/dgs-codegen/blob/5c89523dd90b645746ed73ab7c873412d34624b9/graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/CodeGen.kt#L293
from graphqlcodegen.
Related Issues (20)
- schemaPaths multiple files HOT 1
- Projection classes generate invalid constructors HOT 4
- Is there a way to distinguish explicit null values from missing values? HOT 2
- generateJava code for client when generateClient is true HOT 1
- Maintainer HOT 7
- generateClient Fails when Query isn't named Query HOT 7
- Add option to skip generation HOT 5
- Plugin delete existing files in <outputDir> HOT 1
- Exclude generated files from code coverage report HOT 6
- Add `maven-release-plugin` HOT 1
- Please add a LICENSE file HOT 1
- Fix documentation
- Plugin not generating query client classes
- Include Class Imports and custom annoations HOT 1
- Support for 6.0.1 HOT 1
- Provide a way to pass Java Generic Class as an argument to <typeMapping> HOT 2
- Multiple issues when trying to get a schema from a dependency HOT 2
- integration with codegen and relay pagination HOT 1
- What is the difference between graphql-dgs-codegen-core and graphql-dgs-codegen-client-core? HOT 1
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 graphqlcodegen.