Skip to main content

Crate sphereql_graphql

Crate sphereql_graphql 

Source
Expand description

GraphQL integration for sphereQL spatial queries.

Provides an async-graphql schema with queries for cone, shell, band, wedge, and region lookups, k-nearest-neighbor search, real-time subscriptions via a broadcast event bus, and the full category enrichment surface (concept paths, drill-down, domain groups, stats).

Re-exports§

pub use category::*;
pub use category_types::*;
pub use context::*;
pub use query::*;
pub use subscription::*;
pub use types::*;

Modules§

category
GraphQL root for the category-enrichment surface.
category_types
GraphQL output types for the category-enrichment surface.
context
query
subscription
types

Structs§

MergedQueryRoot
Merged GraphQL query root combining the spatial-only resolvers and the category-enrichment resolvers.

Constants§

DEFAULT_MAX_COMPLEXITY
Default maximum query complexity applied to every schema this crate builds.
DEFAULT_MAX_DEPTH
Default maximum query depth applied to every schema this crate builds.

Functions§

build_unified_schema
Build a UnifiedSchema from all four context resources: the spatial point index, the spatial event bus, the category-enrichment pipeline, and a TextEmbedder for resolvers that take text queries.
build_unified_schema_from_items
Convenience wrapper: build a unified schema from an in-memory list of CategorizedItemInputs and the default no-op embedder.

Type Aliases§

UnifiedSchema
Schema flavor that exposes both spatial and category queries.