strawberry icon indicating copy to clipboard operation
strawberry copied to clipboard

Add support for framework's specific upload type

Open patrick91 opened this issue 1 year ago • 0 comments

From https://github.com/strawberry-graphql/strawberry/pull/3389

We should allow users to do things like this:

import strawberry
from starlette.datastructures import UploadFile

@strawberry.type
class Mutation:
    @strawberry.mutation
    class upload(self, file: UploadFile) -> str:
        return "ok"

For every framework, so they get better typing 😊

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

patrick91 avatar Mar 30 '24 15:03 patrick91