This commit is contained in:
parent
905d03b9ed
commit
ab3c271a6b
|
@ -1,7 +1,3 @@
|
|||
type _Service {
|
||||
sdl: String
|
||||
}
|
||||
|
||||
enum MessageStatus {
|
||||
NEW
|
||||
UPDATED
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
[build-system]
|
||||
requires = ["poetry-core>=1.0.0"]
|
||||
build-backend = "poetry.core.masonry.api"
|
||||
|
||||
[tool.poetry]
|
||||
name = "discoursio-inbox"
|
||||
version = "0.2.15"
|
||||
|
@ -18,10 +14,18 @@ uvicorn = "^0.24"
|
|||
itsdangerous = "^2.1.2"
|
||||
aiohttp = "^3.9.1"
|
||||
|
||||
[tool.poetry.group.dev.dependencies]
|
||||
setuptools = "^69.0.2"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core"]
|
||||
build-backend = "poetry.core.masonry.api"
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
pytest = "^7.4.2"
|
||||
black = { version = "^23.9.1", python = ">=3.12" }
|
||||
ruff = { version = "^0.1.0", python = ">=3.12" }
|
||||
setuptools = "^69.0.2"
|
||||
|
||||
[tool.black]
|
||||
line-length = 120
|
||||
|
@ -69,3 +73,26 @@ target-version = "py312"
|
|||
[tool.pyright]
|
||||
venvPath = "."
|
||||
venv = ".venv"
|
||||
include = ["."]
|
||||
useLibraryCodeForTypes = true
|
||||
disableLanguageServices = false
|
||||
disableOrganizeImports = false
|
||||
reportMissingImports = false
|
||||
reportMissingModuleSource = "warning"
|
||||
reportImportCycles = "warning"
|
||||
maxMemoryForLargeFile = 4096
|
||||
pythonVersion = "3.12"
|
||||
autoImportCompletions = true
|
||||
useVirtualEnv = true
|
||||
typeCheckingMode = "basic"
|
||||
disableJediCompletion = false
|
||||
disableCompletion = false
|
||||
disableSnippetCompletion = false
|
||||
disableGoToDefinition = false
|
||||
disableRenaming = false
|
||||
disableSignatureHelp = false
|
||||
diagnostics = true
|
||||
logLevel = "Information"
|
||||
pluginSearchPaths = []
|
||||
typings = {}
|
||||
mergeTypeStubPackages = false
|
||||
|
|
|
@ -5,12 +5,12 @@ mutation = MutationType()
|
|||
|
||||
# duffok was here 2023-12-1
|
||||
# This is a query resolver for Apollo Federation
|
||||
@query.field("_service")
|
||||
def resolve_service(*_):
|
||||
# Load the full SDL from your SDL file
|
||||
with open("inbox.graphql", "r") as file:
|
||||
full_sdl = file.read()
|
||||
|
||||
return {"sdl": full_sdl}
|
||||
# @query.field("_service")
|
||||
# def resolve_service(*_):
|
||||
# # Load the full SDL from your SDL file
|
||||
# with open("inbox.graphql", "r") as file:
|
||||
# full_sdl = file.read()
|
||||
#
|
||||
# return {"sdl": full_sdl}
|
||||
|
||||
resolvers = [query, mutation]
|
||||
|
|
Loading…
Reference in New Issue
Block a user