A GraphQL library for Python that leverages type annotations 🍓
MIT License
Published by botberry over 3 years ago
Django 3.2 support
Published by botberry over 3 years ago
Raise exception when un-serializable payload is provided to the Django view.
Published by botberry over 3 years ago
This release fixes a regression with the django sending the wrong content type.
Published by botberry over 3 years ago
This release updates get_context in the django integration to also receive a temporal response object that can be used to set headers, cookies and status code.
@strawberry.type
class Query:
@strawberry.field
def abc(self, info: Info) -> str:
info.context.response.status_code = 418
return "ABC"
Published by botberry over 3 years ago
This releases changes how we define resolvers internally, now we have one single resolver for async and sync code.
Published by botberry over 3 years ago
Fix bug when using arguments inside a type that uses typing.Generics
Published by botberry over 3 years ago
This releases updates the ASGI class to make it easier to override get_http_response
.
get_http_response
has been now removed from strawberry.asgi.http and been moved to be
a method on the ASGI class.
A new get_graphiql_response
method has been added to make it easier to provide a different GraphiQL interface.
Published by botberry over 3 years ago
This release updates get_context
in the asgi integration to also
receive a temporal response object that can be used to set headers
and cookies.
Published by botberry over 3 years ago
This release fixes a bug when using the debug server and upload a file
Published by botberry over 3 years ago
Fix DataLoader docs typo.
Published by botberry over 3 years ago
Added support for sanic webserver.
ExecutionResult
was erroneously defined twice in the repository. The entry in strawberry.schema.base
has been removed. If you were using it, switch to using
strawberry.types.ExecutionResult
instead:
from strawberry.types import ExecutionResult
Published by botberry over 3 years ago
Enable using .get for django context as well as for the square brackets notation.
Published by botberry over 3 years ago
Enable dot notation for django context request
Published by botberry over 3 years ago
Supporting multipart file uploads on Flask
Published by botberry over 3 years ago
Expose execution info under strawberry.types.Info
Published by botberry over 3 years ago
Fixes mypy failing when casting in enum decorator
Published by botberry over 3 years ago
Suggest installing the debug server on the getting started docs, so examples can work without import errors of uvicorn
Published by botberry over 3 years ago
Fix Generic name generation to use the custom name specified in Strawberry if available
@strawberry.type(name="AnotherName")
class EdgeName:
node: str
@strawberry.type
class Connection(Generic[T]):
edge: T
will result in AnotherNameConnection
, and not EdgeNameConnection
as before.
Published by botberry over 3 years ago
This release add the ability to disable query validation by setting
validate_queries
to False
import strawberry
@strawberry.type
class Query:
@strawberry.field
def hello(self) -> str:
return "Hello"
schema = strawberry.Schema(Query, validate_queries=validate_queries)
Published by botberry over 3 years ago
This release adds support for MyPy==0.800