Skip to main content

Crate animedb_api

Crate animedb_api 

Source
Expand description

GraphQL service layer for the animedb catalog crate.

This crate exposes:

  • a reusable GraphQL schema builder via build_schema
  • an Axum router via build_router
  • a binary entry point in main.rs for running the service directly

Structs§

AppState
Shared application state injected into the GraphQL schema.
MutationRoot
QueryRoot

Functions§

build_router
Builds the Axum router that serves Playground, GraphQL, and health endpoints.
build_schema
Builds the GraphQL schema backed by one SQLite database path.

Type Aliases§

AnimeDbSchema