Currently there's a problem if you want to generate requests with variables - in every generated file "*.graphql.dart" will be StringComparisonExp, IntComparisonExp or any other comparators. When you will export these files in the library - you will have conflict of class names and need to hide all these duplicated classes with directive hide. Good option to solve this will be having these comparators in the library or generating additional file with them.
Bug description
Currently there's a problem if you want to generate requests with variables - in every generated file "*.graphql.dart" will be StringComparisonExp, IntComparisonExp or any other comparators. When you will export these files in the library - you will have conflict of class names and need to hide all these duplicated classes with directive hide. Good option to solve this will be having these comparators in the library or generating additional file with them.
Specs
Artemis version: ref 0301b81994431300ece65b8cee08a517fe54d8f3
build.yaml:
```yaml targets: $default: sources: - lib/** - graphql/** - $package$ - schema.graphql builders: artemis: options: generate_helpers: true schema_mapping: - schema: schema.graphql queries_glob: graphql/files.graphql output: lib/src/graphql/files.graphql.dart custom_parser_import: 'package:graph_test/src/graphql_parsers/datetime_parser.dart' scalar_mapping: - graphql_type: timestamp dart_type: DateTime use_custom_parser: true - graphql_type: bigint dart_type: int - graphql_type: json dart_type: String ```Artemis output:
```bash [INFO] Entrypoint:Generating build script... [INFO] Entrypoint:Generating build script completed, took 143ms [INFO] BuildDefinition:Initializing inputs [INFO] BuildDefinition:Reading cached asset graph... [WARNING] BuildDefinition: Throwing away cached asset graph because the build phases have changed. This most commonly would happen as a result of adding a new dependency or updating your dependencies. [INFO] BuildDefinition:Cleaning up outputs from previous builds.... [INFO] BuildDefinition:Cleaning up outputs from previous builds. completed, took 1ms [INFO] Entrypoint:Generating build script... [INFO] Entrypoint:Generating build script completed, took 26ms [WARNING] Bootstrap: Invalidated precompiled build script due to missing asset graph. [INFO] Bootstrap:Precompiling build script...... [INFO] Bootstrap:Precompiling build script... completed, took 479ms [INFO] BuildDefinition:Initializing inputs [INFO] BuildDefinition:Building new asset graph... [INFO] BuildDefinition:Building new asset graph completed, took 371ms [INFO] BuildDefinition:Checking for unexpected pre-existing outputs.... [INFO] BuildDefinition:Checking for unexpected pre-existing outputs. completed, took 0ms [INFO] Build:Running build... [FINE] artemis on lib/$lib$:-> Class [FINE] artemis on lib/$lib$:┌ [TypeName(name:r'GetFilesStreaming'), TypeName(name:r'subscription_root')][subscription_root][null null] () [FINE] artemis on lib/$lib$:| [TypeName(name:r'GetFilesStreaming'), TypeName(name:r'subscription_root')][subscription_root][ClassName(name:r'files') ClassPropertyName(name:r'files')] -> ListI have reproducible example here except for that it has only 1 request. But the idea is clear I think. https://github.com/JSBmanD/graphql_comparsion_problem