[package]
name = "sz-orm-graphql"
description = "GraphQL schema generator and server: SDL generation, model-driven Query/Mutation, optional async-graphql runtime with injectable DB resolver (P2-1: real DB resolver support; falls back to mock data when no resolver is injected)"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
keywords.workspace = true
categories.workspace = true
[features]
default = []
real = ["dep:async-graphql", "dep:async-graphql-axum", "dep:axum", "dep:tracing"]
db-resolver = []
graphql-n1 = ["dep:parking_lot"]
graphql-schema-gen = ["dep:sz-orm-macros"]
graphql-complexity = []
async-graphql-integration = ["real", "graphql-n1", "dep:sz-orm-queue"]
[package.metadata.cargo-machete]
ignored = ['sz-orm-macros', 'sz-orm-queue']
[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tokio = { workspace = true }
tracing = { workspace = true, optional = true }
async-graphql = { version = "7", optional = true }
async-graphql-axum = { version = "7", optional = true }
axum = { version = "0.8", optional = true }
parking_lot = { workspace = true, optional = true }
sz-orm-macros = { version = "4.1.0", path = "../sz-orm-macros", optional = true }
sz-orm-queue = { version = "4.1.0", path = "../sz-orm-queue", optional = true }
[lints]
workspace = true
[[test]]
name = "async_graphql_integration_test"
required-features = ["async-graphql-integration"]