1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00

Have better output types on mutations

This commit is contained in:
Quentin Gliech
2023-04-25 16:12:20 +02:00
parent 3b0f2ea1b0
commit ed5c367df6
8 changed files with 647 additions and 173 deletions

View File

@@ -26,9 +26,9 @@ use self::{upstream_oauth::UpstreamOAuthQuery, viewer::ViewerQuery};
/// The query root of the GraphQL interface.
#[derive(Default, MergedObject)]
pub struct RootQuery(BaseQuery, UpstreamOAuthQuery, ViewerQuery);
pub struct Query(BaseQuery, UpstreamOAuthQuery, ViewerQuery);
impl RootQuery {
impl Query {
#[must_use]
pub fn new() -> Self {
Self::default()