0

In the netflix grapql code gen documentation what is the equivalent of generateJava in a kotlin project build script. And how can I specify the directory of generated codes? Also in the below code, should i add all my domain types in the collection?

typeMapping = ["MyGraphQLType": "com.mypackage.MyJavaType"]
DragonKnight
  • 1,740
  • 2
  • 22
  • 35

1 Answers1

1

You can just use generateJava in a Kotlin project, it will generate Kotlin code by default.

Note that on a Kotlin project, the generateJava task generates Kotlin code by default (yes the name is confusing) in https://netflix.github.io/dgs/generating-code-from-schema/

iltaek
  • 11
  • 2