QueryCodegenPlugin
Constructor:
Initialize the plugin.
The singular argument is the path to the file that is being processed by this plugin.
Signature:
def __init__(self, query: Path) -> None: ...
Parameters:
-
query:
- Type
-
Path
Methods:
-
on_start
Signature:
def on_start(self) -> None:... -
on_end
Signature:
def on_end(self, result: CodegenResult) -> None:...Parameters:
-
result:
- Type
-
CodegenResult
-
-
generate_code
Signature:
def generate_code(self, types: List[GraphQLType], operation: GraphQLOperation) -> List[CodegenFile]:...Parameters:
-
types:
- Type
-
List[GraphQLType]
-
operation:
- Type
-
GraphQLOperation
-
Attributes:
-
query: