strawberry

A GraphQL library for Python that leverages type annotations 🍓

MIT License

Downloads
1.1M
Stars
3.8K
Committers
260
strawberry - Strawberry 0.50.3

Published by botberry over 3 years ago

Django 3.2 support

strawberry - Strawberry 0.50.2

Published by botberry over 3 years ago

Raise exception when un-serializable payload is provided to the Django view.

strawberry - Strawberry 0.50.1

Published by botberry over 3 years ago

This release fixes a regression with the django sending the wrong content type.

strawberry - Strawberry 0.50.0

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"
strawberry - Strawberry 0.49.2

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.

strawberry - Strawberry 0.49.1

Published by botberry over 3 years ago

Fix bug when using arguments inside a type that uses typing.Generics

strawberry - Strawberry 0.49.0

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.

strawberry - Strawberry 0.48.3

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.

strawberry - Strawberry 0.48.2

Published by botberry over 3 years ago

This release fixes a bug when using the debug server and upload a file

strawberry - Strawberry 0.48.1

Published by botberry over 3 years ago

Fix DataLoader docs typo.

strawberry - Strawberry 0.48.0

Published by botberry over 3 years ago

New Features

Added support for sanic webserver.

Changelog

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
strawberry - Strawberry 0.47.1

Published by botberry over 3 years ago

Enable using .get for django context as well as for the square brackets notation.

strawberry - Strawberry 0.47.0

Published by botberry over 3 years ago

Enable dot notation for django context request

strawberry - Strawberry 0.46.0

Published by botberry over 3 years ago

Supporting multipart file uploads on Flask

strawberry - Strawberry 0.45.4

Published by botberry over 3 years ago

Expose execution info under strawberry.types.Info

strawberry - Strawberry 0.45.3

Published by botberry over 3 years ago

Fixes mypy failing when casting in enum decorator

strawberry - Strawberry 0.45.2

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

strawberry - Strawberry 0.45.1

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.

strawberry - Strawberry 0.45.0

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)
strawberry - Strawberry 0.44.12

Published by botberry over 3 years ago

This release adds support for MyPy==0.800

Package Rankings
Top 1.15% on Pypi.org
Top 16.1% on Conda-forge.org
Badges
Extracted from project README
CircleCI Discord PyPI
Related Projects