Strawberry-graphql

Latest version: v0.229.1

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

Scan your dependencies

Page 71 of 119

0.84.0

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

This release adds support for FastAPI integration using APIRouter.

python
import strawberry

from fastapi import FastAPI
from strawberry.fastapi import GraphQLRouter


strawberry.type
class Query:
strawberry.field
def hello(self) -> str:
return "Hello World"


schema = strawberry.Schema(Query)

graphql_app = GraphQLRouter(schema)

app = FastAPI()
app.include_router(graphql_app, prefix="/graphql")


Contributed by [Jiří Bireš](https://github.com/jiribires) [PR #1291](https://github.com/strawberry-graphql/strawberry/pull/1291/)

0.83.6

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

Improve help texts for CLI to work better on ZSH.

Contributed by [Magnus Markling](https://github.com/memark) [PR #1360](https://github.com/strawberry-graphql/strawberry/pull/1360/)

0.83.5

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

Errors encountered in subscriptions will now be logged to the `strawberry.execution` logger as errors encountered in Queries and Mutations are. <3

Contributed by [Michael Ossareh](https://github.com/ossareh) [PR #1316](https://github.com/strawberry-graphql/strawberry/pull/1316/)

0.83.4

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

Add logic to convert arguments of type LazyType.

Contributed by [Luke Murray](https://github.com/lukesmurray) [PR #1350](https://github.com/strawberry-graphql/strawberry/pull/1350/)

0.83.3

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

This release fixes a bug where passing scalars in the `scalar_overrides`
parameter wasn't being applied consistently.

Contributed by [Jonathan Kim](https://github.com/jkimbo) [PR #1212](https://github.com/strawberry-graphql/strawberry/pull/1212/)

0.83.2

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

Pydantic fields' `description` are now copied to the GraphQL schema

python
import pydantic
import strawberry


class UserModel(pydantic.BaseModel):
age: str = pydantic.Field(..., description="Description")


strawberry.experimental.pydantic.type(UserModel)
class User:
age: strawberry.auto



type User {
"""Description"""
age: String!
}


Contributed by [Guillaume Andreu Sabater](https://github.com/g-as) [PR #1332](https://github.com/strawberry-graphql/strawberry/pull/1332/)

Page 71 of 119

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.