packageNamesFromFilePaths
Generates package names from the '.graphql' file paths.
Parameters
rootPackageName
: a root package name to prepend to the package names
Example, with the below configuration:
srcDir("src/main/graphql")
packageNamesFromFilePaths("com.example")
Content copied to clipboard
an operation defined in src/main/graphql/query/feature1
is generated in package com.example.query.feature1
. an input object defined in src/main/graphql/schema/schema.graphqls
is generated in package com.example.schema.type
.