strawberry-graphql / strawberry

A GraphQL library for Python that leverages type annotations 🍓
https://strawberry.rocks
MIT License
3.93k stars 517 forks source link

Update documentation code snippets to run as is #1294

Open patrick91 opened 2 years ago

patrick91 commented 2 years ago

As suggested by @Kludex we should be allow to copy a snippet of code from our documentation and run it as is, without code changes. Pydantic does this in their docs :)

I think this might be a good first issue, if you want to work on this feel free to choose any code snippet and send a PR for it, no need to convert all of them at once 😊

Upvote & Fund

Fund with Polar

sighclone commented 2 years ago

Hi! I'd like to do this

patrick91 commented 2 years ago

@sighclone sure, feel free to send a PR :)

sighclone commented 2 years ago

@patrick91 Raised PR #1296 🙌

rounit08 commented 2 years ago

@patrick91 Can I do this?

patrick91 commented 2 years ago

@patrick91 Can I do this?

sure, send a PR :)

subhamgcon commented 2 years ago

@patrick91 Can I work on this?

patrick91 commented 2 years ago

@patrick91 Can I work on this?

Sure, send a PR :)