cala_server/extension/
core.rs

1#[derive(async_graphql::SimpleObject, Default)]
2pub struct CoreMutationExtension {
3    #[graphql(flatten)]
4    cala_outbox_import: super::cala_outbox_import::Mutation,
5}
6
7#[derive(async_graphql::SimpleObject, Default)]
8pub struct MutationExtension {
9    #[graphql(flatten)]
10    core: CoreMutationExtension,
11}
12impl super::MutationExtensionMarker for MutationExtension {}
13
14#[derive(Default)]
15pub struct CoreQueryExtension;
16#[async_graphql::Object]
17impl CoreQueryExtension {
18    async fn server_version(&self) -> &str {
19        clap::crate_version!()
20    }
21}
22
23#[derive(async_graphql::SimpleObject, Default)]
24pub struct QueryExtension {
25    #[graphql(flatten)]
26    core: CoreQueryExtension,
27}
28impl super::QueryExtensionMarker for QueryExtension {}