diff --git a/crates/graphql/schema.graphql b/crates/graphql/schema.graphql index 3d3eb1e6e..316b5977e 100644 --- a/crates/graphql/schema.graphql +++ b/crates/graphql/schema.graphql @@ -2,7 +2,7 @@ An authentication records when a user enter their credential in a browser session. """ -type Authentication implements CreationEvent & Node { +type Authentication implements Node { """ ID of the object. """ @@ -17,7 +17,7 @@ type Authentication implements CreationEvent & Node { """ A browser session represents a logged in user in a browser. """ -type BrowserSession implements Node & CreationEvent { +type BrowserSession implements Node { """ ID of the object. """ @@ -69,7 +69,7 @@ type BrowserSessionEdge { A compat session represents a client session which used the legacy Matrix login API. """ -type CompatSession implements Node & CreationEvent { +type CompatSession implements Node { """ ID of the object. """ @@ -153,13 +153,6 @@ type CompatSsoLoginEdge { node: CompatSsoLogin! } -interface CreationEvent { - """ - When the object was created. - """ - createdAt: DateTime! -} - """ Implement the DateTime scalar @@ -346,7 +339,7 @@ type User implements Node { """ A user email address """ -type UserEmail implements CreationEvent & Node { +type UserEmail implements Node { """ ID of the object. """ diff --git a/crates/graphql/src/lib.rs b/crates/graphql/src/lib.rs index 93037aa6f..bf4b623d1 100644 --- a/crates/graphql/src/lib.rs +++ b/crates/graphql/src/lib.rs @@ -24,7 +24,6 @@ use async_graphql::{Context, Description, EmptyMutation, EmptySubscription}; use mas_axum_utils::SessionInfo; -use model::CreationEvent; use sqlx::PgPool; use self::model::{BrowserSession, Node, User}; @@ -38,7 +37,8 @@ pub type SchemaBuilder = async_graphql::SchemaBuilder SchemaBuilder { async_graphql::Schema::build(RootQuery::new(), EmptyMutation, EmptySubscription) .register_output_type::() - .register_output_type::() + // TODO: ordering of interface implementations is not stable + //.register_output_type::() } /// The query root of the GraphQL interface.