Strawberry-graphql

Latest version: v0.235.0

Safety actively analyzes 638437 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 89 of 122

0.61.2

Not secure
-------------------

This release adds support for the info param in resolve_reference:

python
strawberry.federation.type(keys=["upc"])
class Product:
upc: str
info: str

classmethod
def resolve_reference(cls, info, upc):
return Product(upc, info)


> Note: resolver reference is used when using Federation, similar to [Apollo server's __resolveReference](https://apollographql.com/docs/federation/api/apollo-federation/#__resolvereference)

0.61.1

Not secure
-------------------

This release extends the `strawberry server` command to allow the specification
of a schema symbol name within a module:

sh
strawberry server mypackage.mymodule:myschema


The schema symbol name defaults to `schema` making this change backwards compatible.

0.61.0

Not secure
-------------------

This release adds file upload support to the [Sanic](https://sanicframework.org)
integration. No additional configuration is required to enable file upload support.

The following example shows how a file upload based mutation could look like:

python
import strawberry
from strawberry.file_uploads import Upload


strawberry.type
class Mutation:
strawberry.mutation
def read_text(self, text_file: Upload) -> str:
return text_file.read().decode()

0.60.0

Not secure
-------------------

This release adds an `export-schema` command to the Strawberry CLI.
Using the command you can print your schema definition to your console.
Pipes and redirection can be used to store the schema in a file.

Example usage:

sh
strawberry export-schema mypackage.mymodule:myschema > schema.graphql

0.59.1

Not secure
-------------------

This release fixes an issue that prevented using `source` as name of an argument

0.59.0

Not secure
-------------------

This release adds an [aiohttp](https://github.com/aio-libs/aiohttp) integration for
Strawberry. The integration provides a `GraphQLView` class which can be used to
integrate Strawberry with aiohttp:

python
import strawberry
from aiohttp import web
from strawberry.aiohttp.views import GraphQLView


strawberry.type
class Query:
pass


schema = strawberry.Schema(query=Query)

app = web.Application()

app.router.add_route("*", "/graphql", GraphQLView(schema=schema))

Page 89 of 122

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.