packageNamesFromFilePaths
A helper method to configure a PackageNameGenerator that will use the file path relative to the source roots to generate the packageNames
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
will use com.example.query.feature1
as package name an input object defined in src/main/graphql/schema/schema.graphqls
will use com.example.schema.type
as package name