reactive_graph_graphql_schema/query/
mod.rs1use async_graphql::*;
2use uuid::Uuid;
3
4pub use behaviours::*;
5pub use instances::*;
6pub use json_schema::*;
7pub use types::*;
8
9pub mod behaviours;
10pub mod instances;
11pub mod json_schema;
12pub mod types;
13
14pub struct ReactiveGraphQuery;
15
16#[Object(name = "Query")]
18impl ReactiveGraphQuery {
19 async fn types(&self) -> Types {
21 Types
22 }
23
24 async fn instances(&self) -> Instances {
26 Instances
27 }
28
29 async fn behaviours(&self) -> Behaviours {
32 Behaviours
33 }
34
35 async fn json_schema(&self) -> JsonSchema {
37 JsonSchema
38 }
39
40 async fn random_uuid(&self, _context: &Context<'_>) -> String {
41 Uuid::new_v4().to_string()
42 }
43}