You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-08-06 06:02:40 +03:00
Update schemas
This commit is contained in:
32
crates/graphql/schema.graphql
Normal file
32
crates/graphql/schema.graphql
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
type Mutation {
|
||||||
|
"""
|
||||||
|
A dummy mutation so that the mutation object is not empty
|
||||||
|
"""
|
||||||
|
hello: Boolean!
|
||||||
|
}
|
||||||
|
|
||||||
|
type Query {
|
||||||
|
"""
|
||||||
|
A simple property which uses the DB pool and the current session
|
||||||
|
"""
|
||||||
|
username: String
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
type Subscription {
|
||||||
|
"""
|
||||||
|
A dump subscription to try out the websocket
|
||||||
|
"""
|
||||||
|
integers(step: Int! = 1): Int!
|
||||||
|
}
|
||||||
|
|
||||||
|
schema {
|
||||||
|
query: Query
|
||||||
|
mutation: Mutation
|
||||||
|
subscription: Subscription
|
||||||
|
}
|
||||||
|
|
@@ -80,6 +80,10 @@
|
|||||||
{
|
{
|
||||||
"name": "compat"
|
"name": "compat"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "graphql",
|
||||||
|
"playground": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "static"
|
"name": "static"
|
||||||
}
|
}
|
||||||
@@ -1333,6 +1337,26 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"description": "GraphQL endpoint",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"graphql"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"playground": {
|
||||||
|
"description": "Enabled the GraphQL playground",
|
||||||
|
"default": false,
|
||||||
|
"type": "boolean"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"description": "OAuth-related APIs",
|
"description": "OAuth-related APIs",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
Reference in New Issue
Block a user