Expected Behavior
zfa graphql introspect <url> should connect to a live GraphQL endpoint, run the introspection query (which already exists in lib/src/graphql/graphql_introspection_service.dart), and generate Zorphy-annotated entity files for each schema type.
Actual Behavior
The "graphql" plugin was just wired into the CLI (PR #261), but it only generates GraphQL query/mutation STRING files (e.g., "GetProduct query { ... }") — not entities. There is no "introspect" subcommand. The introspection service exists in the codebase but has no CLI exposure.
Minimal Reproduction
zfa graphql introspect http://localhost:3000/shop-api — Command not found (no "introspect" subcommand)
zfa graphql <EntityName> — Generates a GraphQL operation string, not an entity
Context
First real-world use of the graphql plugin: Vendure e-commerce SDK rewrite (vendure-flutter-sdk). The existing lib/src/graphql/ directory has all the infrastructure (introspection service, schema model, schema translator, entity emitter) but it is not wired into any CLI command.
Suggested Fix
Add a zfa graphql introspect <url> command that:
- Calls GraphQLIntrospectionService.introspect(url)
- Passes the result to GraphqlSchemaTranslator / GraphqlEntityEmitter
- Generates Zorphy entity files for each OBJECT and INPUT_OBJECT type
Expected Behavior
zfa graphql introspect <url>should connect to a live GraphQL endpoint, run the introspection query (which already exists inlib/src/graphql/graphql_introspection_service.dart), and generate Zorphy-annotated entity files for each schema type.Actual Behavior
The "graphql" plugin was just wired into the CLI (PR #261), but it only generates GraphQL query/mutation STRING files (e.g., "GetProduct query { ... }") — not entities. There is no "introspect" subcommand. The introspection service exists in the codebase but has no CLI exposure.
Minimal Reproduction
zfa graphql introspect http://localhost:3000/shop-api— Command not found (no "introspect" subcommand)zfa graphql <EntityName>— Generates a GraphQL operation string, not an entityContext
First real-world use of the graphql plugin: Vendure e-commerce SDK rewrite (vendure-flutter-sdk). The existing
lib/src/graphql/directory has all the infrastructure (introspection service, schema model, schema translator, entity emitter) but it is not wired into any CLI command.Suggested Fix
Add a
zfa graphql introspect <url>command that: