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

Temporarily remove an interface for a stable SDL export

This commit is contained in:
Quentin Gliech
2022-11-09 18:58:15 +01:00
parent 4f01c123c3
commit 76737ba41a
2 changed files with 6 additions and 13 deletions

View File

@@ -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<Utc> 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.
"""

View File

@@ -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<RootQuery, EmptyMutation,
pub fn schema_builder() -> SchemaBuilder {
async_graphql::Schema::build(RootQuery::new(), EmptyMutation, EmptySubscription)
.register_output_type::<Node>()
.register_output_type::<CreationEvent>()
// TODO: ordering of interface implementations is not stable
//.register_output_type::<CreationEvent>()
}
/// The query root of the GraphQL interface.