How simbo1905/spring-bigtable-graphql works
This repository is a Spring Boot GraphQL service that resolves GraphQL fields from Google Cloud Bigtable. A client query is handled by the GraphQL runtime built by GraphQLProvider; schema fields are wired from wirings.json to BigtableDataFetchers, which delegates reads to BigtableRunner. The README also documents deploying the service on Knative. The sampled source shows schema construction and the Bigtable read path, but not an HTTP request handler; the query-to-runtime link is therefore documented rather than traced through a handler.
Main entry points: GraphQLProvider.java GraphQL provider · BigtableDataFetchers.java Field wiring · BigtableRunner.java Bigtable runner · BigtableGraphQLApplication.java Spring Boot app
Components 10
Application entry
- Spring Boot app
src/main/java/com/github/simbo1905/bigtablegraphql/BigtableGraphQLApplication.java
GraphQL runtime
- GraphQL provider
src/main/java/com/github/simbo1905/bigtablegraphql/GraphQLProvider.java - GraphQL schema
src/main/resources/schema.graphqls - Field wiring
src/main/java/com/github/simbo1905/bigtablegraphql/BigtableDataFetchers.java - Wiring metadata
src/main/resources/wirings.json
Bigtable access
- Bigtable runner
src/main/java/com/github/simbo1905/bigtablegraphql/BigtableRunner.java - Cloud Bigtable
Deployment
- Knative Serving
- Knative service config
bigtable-graphql/templates/knative-service.yaml
Other components
- GraphQL client
Connections 8
- Spring Boot app → GraphQL provider: starts context
src/main/java/com/github/simbo1905/bigtablegraphql/BigtableGraphQLApplication.java - GraphQL provider → GraphQL schema: loads schema
src/main/java/com/github/simbo1905/bigtablegraphql/GraphQLProvider.java - GraphQL provider → Field wiring: builds wiring
src/main/java/com/github/simbo1905/bigtablegraphql/GraphQLProvider.java - Field wiring → Wiring metadata: loads mappings
src/main/java/com/github/simbo1905/bigtablegraphql/BigtableDataFetchers.java - Field wiring → Bigtable runner: creates fetchers
src/main/java/com/github/simbo1905/bigtablegraphql/BigtableDataFetchers.java - Bigtable runner → Cloud Bigtable: reads rows
src/main/java/com/github/simbo1905/bigtablegraphql/BigtableRunner.java - GraphQL client → GraphQL provider: submits query
README.md - Knative Serving → Knative service config: uses config
README.md