An error occurred while fetching the assigned milestone of the selected merge_request.
+ 1
- 0
@@ -683,6 +683,7 @@ Inspired by [awesome-php](https://github.com/ziadoz/awesome-php).
Created by: andriykohut
Ariadne is a Python library for implementing GraphQL servers using a schema-first approach.
Schema-first approach - unlike graphene the schema is defined explicitly and is not inferred from code, it's more light-weight and less opinionated, it has subscriptions, file uploads, tracing and other useful stuff built-in.
Example hello world app with starlette:
from ariadne import QueryType, make_executable_schema
from ariadne.asgi import GraphQL
from starlette.applications import Starlette
type_defs = """
type Query {
hello: String!
}
"""
query = QueryType()
@query.field("hello")
def resolve_hello(*_):
return "Hello world!"
# Create executable schema instance
schema = make_executable_schema(type_defs, query)
app = Starlette(debug=True)
app.mount("/graphql", GraphQL(schema, debug=True))
Here's a really nice into and justification from one of the authors: https://blog.mirumee.com/schema-first-graphql-the-road-less-travelled-cf0e50d5ccff
Anyone who agrees with this pull request could submit an Approve review to it.
Preferences