Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scalar_override example to File Upload #3389

Merged
merged 2 commits into from
Mar 30, 2024

Conversation

jonfinerty
Copy link
Contributor

Add an example of setting a scalar override in order to get the correct type annotation of the runtime type of the Upload scalar to the documentation, something which took me a while to work out myself. I don't know if it's worth the update, but would have saved me half an hour.

I don't think your adding RELEASE.md's for doc changes, but happy to add one if this is accepted.

Description

Short documentation about how to get file upload type annotations working based on the particular integration your using.

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Documentation

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

Add an example of setting a scalar override in order to get the correct type annotation of the runtime type of the Upload scalar
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. All the files appear to be documentation files, which we're not great at reviewing... yet!

Copy link

Hi 👋 You can find a preview of the docs here:

https://beta.strawberry.rocks/docs/pr/3389/guides/file-upload

@patrick91
Copy link
Member

@jonfinerty great addition, I wonder if should do this automatically based on the current framework? /cc @erikwrede @bellini666

@bellini666
Copy link
Member

@jonfinerty great addition, I wonder if should do this automatically based on the current framework? /cc @erikwrede @bellini666

Probably we should :)
Not sure if there are any downsides to that though

Copy link
Member

@patrick91 patrick91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Sorry for taking so long to merge this 😊

I think we might still want to make this almost invisible, but I'll open an issue for that :)

@patrick91 patrick91 merged commit 0b28f08 into strawberry-graphql:main Mar 30, 2024
5 checks passed
@botberry
Copy link
Member

Thanks for contributing to Strawberry! 🎉 You've been invited to join
the Strawberry GraphQL organisation 😊

You can also request a free sticker by filling this form: https://forms.gle/dmnfQUPoY5gZbVT67

And don't forget to join our discord server: https://strawberry.rocks/discord 🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants