reactive_graph_client/client/runtime/remotes/mutations/
update_all_remotes.rs

1#[cynic::schema_for_derives(file = r#"../../schema/graphql/reactive-graph-runtime-schema.graphql"#, module = "crate::schema_runtime::schema")]
2pub mod mutations {
3    use crate::schema_runtime::InstanceInfo;
4
5    #[derive(Debug, cynic::QueryFragment)]
6    #[cynic(graphql_type = "Mutation")]
7    pub struct UpdateAllRemotes {
8        pub remotes: UpdateAllRemotesMutationRemotes,
9    }
10
11    #[derive(Debug, cynic::QueryFragment)]
12    #[cynic(graphql_type = "MutationRemotes")]
13    pub struct UpdateAllRemotesMutationRemotes {
14        pub update_all: Vec<InstanceInfo>,
15    }
16
17    pub fn update_all() -> cynic::Operation<UpdateAllRemotes, ()> {
18        use cynic::MutationBuilder;
19        UpdateAllRemotes::build(())
20    }
21}