@liveflow-io/kotlin-graphql-resolvers
v0.0.2
Published
Not in use, be aware, maybe will be used in the future
Downloads
3
Readme
@liveflow-io/kotlin-graphql-resolvers
Not in use, be aware, maybe will be used in the future
Config options
###package?: string
@description Customize the Java package name. The default package name will be generated according to the output file path.
@example
generates:
src/main/kotlin/my-org/my-app/Resolvers.kt:
plugins:
- kotlin
config:
package: custom.package.name
enumValues?: EnumValuesMap
@description Overrides the default value of enum values declared in your GraphQL schema.
@example
config:
enumValues:
MyEnum:
A: 'foo'
@default Iterable @description Allow you to customize the list type
@example
generates:
src/main/kotlin/my-org/my-app/Types.kt:
plugins:
- @liveflow-io/kotlin-graphql-resolvers
config:
listType: Map
listType?: string
enumsPackage?: string
@default true
@description Generates enums import, to be used in conjunction with generateTypes
@example
generates:
src/main/kotlin/my-org/my-app/Types.kt:
plugins:
- @liveflow-io/kotlin-graphql-resolvers
config:
enumsPackage: 'com.example.enums.'
generateTypes: true
generateEnums: false
generateEnums?: boolean
@default true
@description Generates enums, you can set false to disable enum generation
@exampleMarkdown
generates:
src/main/kotlin/my-org/my-app/Enums.kt:
plugins:
- @liveflow-io/kotlin-graphql-resolvers
config:
generateEnums: true
generateTypes: false
###generateTypes?: boolean
@default true
@description Generates types only, to be used in conjunction with enumsPackage
to get enums from somewhere
@example
generates:
src/main/kotlin/my-org/my-app/Types.kt:
plugins:
- @liveflow-io/kotlin-graphql-resolvers
config:
generateEnums: false
generateTypes: true
enumsPackage: 'com.example.enums.'