GraphQL Schema Generation Fails when Import Statement is not Present in the FIle #4379
Labels
module/graphql
Issues related to Ballerina GraphQL module
Reason/EngineeringMistake
The issue occurred due to a mistake made in the past.
Team/PCM
Protocol connector packages related issues
Type/Bug
Milestone
Description:
Consider a Ballerina package with the following files:
. ├── Ballerina.toml ├── service.bal ├── listener.bal
In the
listener.bal
file, the following listener is defined:In the
service.bal
file, the following service is defined:This throws the following compilation error:
This is because the code modifier does not add missing import statements in the
service
file. This should be handled in the code modifier.The text was updated successfully, but these errors were encountered: