How singhdhairya17/querysmith works
querysmith is an Angular GraphQL query-building app. The main workflow is endpoint and header entry, schema introspection, field and argument selection, query/variable generation, then testing or executing the request and displaying its response. The graph includes the documented mutation, custom-header, nested-field, and editable-query capabilities. Source excerpts show the key calls; peripheral implementation details and the local proxy server’s runtime wiring are not expanded.
Main entry points: graphql-query-builder.component.ts Builder UI · graphql-metadata.service.ts Schema metadata · graphql-query-validator.service.ts Test and execute · graphql-field-tree.component.ts Field tree
Components 15
Demo shell
- Demo page
src/app/app.component.ts
Query builder
- Builder UI
src/app/graphql-query-builder/components/graphql-query-builder.component.ts - Field tree
src/app/graphql-query-builder/components/graphql-field-tree.component.ts - Argument editor
src/app/graphql-query-builder/components/graphql-argument-editor.component.ts - Query generation
src/app/graphql-query-builder/services/graphql-query-builder.service.ts
Schema discovery
- Schema metadata
src/app/graphql-query-builder/services/graphql-metadata.service.ts - Schema model
src/app/graphql-query-builder/models/graphql-metadata.model.ts
Request handling
- Query payload model
src/app/graphql-query-builder/models/graphql-query.model.ts - Test and execute
src/app/graphql-query-builder/services/graphql-query-validator.service.ts - HTTP headers
src/app/graphql-query-builder/graphql-http-headers.util.ts - Gateway request mapping
src/app/graphql-query-builder/graphql-gateway-request.util.ts - Gateway token
src/app/graphql-query-builder/graphql-http-gateway.token.ts - Response and errors
src/app/graphql-query-builder/models/graphql-query.model.ts
Other components
- Builder user
- GraphQL endpoint
Connections 25
- Builder user → Demo page: opens
src/app/app.component.ts - Demo page → Builder UI: renders
src/app/app.component.ts - Builder user → Builder UI: configures
README.md - Builder UI → Schema metadata: loads schema
src/app/graphql-query-builder/components/graphql-query-builder.component.ts - Schema metadata → GraphQL endpoint: introspects
src/app/graphql-query-builder/services/graphql-metadata.service.ts - Schema metadata → Gateway request mapping: resolves POST
src/app/graphql-query-builder/services/graphql-metadata.service.ts - Schema metadata → HTTP headers: builds headers
src/app/graphql-query-builder/services/graphql-metadata.service.ts - Schema metadata → Gateway token: reads gateway
src/app/graphql-query-builder/services/graphql-metadata.service.ts - Schema metadata → Schema model: normalizes into
src/app/graphql-query-builder/services/graphql-metadata.service.ts - Builder UI → Field tree: renders
src/app/graphql-query-builder/components/graphql-query-builder.component.ts - Field tree → Schema metadata: loads children
src/app/graphql-query-builder/components/graphql-field-tree.component.ts - Field tree → Schema model: uses field nodes
src/app/graphql-query-builder/components/graphql-field-tree.component.ts - Builder UI → Argument editor: renders
src/app/graphql-query-builder/components/graphql-query-builder.component.ts - Builder UI → Query generation: generates document
src/app/graphql-query-builder/components/graphql-query-builder.component.ts - Query generation → Schema model: reads fields
src/app/graphql-query-builder/services/graphql-query-builder.service.ts - Query generation → Query payload model: builds payload
src/app/graphql-query-builder/services/graphql-query-builder.service.ts - Builder UI → Test and execute: tests query
src/app/graphql-query-builder/components/graphql-query-builder.component.ts - Builder UI → Query payload model: submits payload
src/app/graphql-query-builder/components/graphql-query-builder.component.ts - Test and execute → Gateway request mapping: resolves POST
src/app/graphql-query-builder/services/graphql-query-validator.service.ts - Test and execute → HTTP headers: builds headers
src/app/graphql-query-builder/services/graphql-query-validator.service.ts - Test and execute → Gateway token: reads gateway
src/app/graphql-query-builder/services/graphql-query-validator.service.ts - Test and execute → GraphQL endpoint: posts query
src/app/graphql-query-builder/services/graphql-query-validator.service.ts - Test and execute → Response and errors: maps response
src/app/graphql-query-builder/services/graphql-query-validator.service.ts - Builder user → Builder UI: edits document
README.md - Builder UI → Test and execute: executes query
README.md