reactive_graph_client/client/instances/relations/variables/
search.rs

1#[cynic::schema_for_derives(file = r#"../../schema/graphql/reactive-graph-schema.graphql"#, module = "crate::schema_graphql::schema")]
2pub mod variables {
3    use cynic::QueryVariables;
4
5    #[derive(QueryVariables, Debug)]
6    pub struct SearchRelationInstancesVariables {
7        //
8        // TODO: outboundComponentTy
9        // TODO: outboundEntityTy
10        // TODO: inboundComponentTy
11        // TODO: inboundEntityTy
12        // TODO (GraphQL Schema): search for instanceId
13        //
14        /// Returns only the relation instance with the outbound entity instance has the given id.
15        pub outbound_id: Option<crate::schema_graphql::scalar::id::UUID>,
16        /// Filters the relation instances by fully qualified namespace of the relation type.
17        #[cynic(rename = "type")]
18        pub _type: Option<String>,
19        /// Returns only the relation instance with the inbound entity instance has the given id.
20        pub inbound_id: Option<crate::schema_graphql::scalar::id::UUID>,
21        /// Filter by properties.
22        pub properties: Option<Vec<crate::schema_graphql::instances::property_instance::property_instance_definition::PropertyInstanceDefinition>>,
23        /// Filter the relation instances by components.
24        pub components: Option<Vec<String>>,
25        // TODO: search for applied behaviours
26    }
27}