4 GraphQL in Python | InputType & Validation with __post_init__ (FastAPI + Strawberry)
#gyanofpython #fastapi #api #programming #coding #pythonframework #python #webframework #graphql #graphqltutorial #validator #validation #graphqltype #inputtype #validationinputtype Welcome to the 4th video of our GraphQL with FastAPI & Strawberry series! 🎯 In this video, we’ll learn how to: Use GraphQL InputType in Strawberry to handle structured inputs Perform input validation using __post_init__ inside a dataclass Validate multiple parameters before processing the query Integrate everything with a GET API to fetch user data safely 🔥 Topics Covered: Creating an InputType class in Strawberry Validating two fields using __post_init__ Handling bad requests gracefully Practical example with FastAPI GraphQL endpoint 📚 Previous Videos: 1️⃣ Fetch & Create Data – https://youtu.be/R1n_lxEqPls?si=GBC60edHRQDA1mq3 2️⃣ Update & Delete Data – https://youtu.be/JCLv2-Tks4E?si=Hx4VlDAeuPe3yVRh 3️⃣ Fetch Without Table Join – https://youtu.be/fZd2qCKT3mo?si=Lj9J7IDEaNeJVTxd Github Link: https://github.com/mayurvkorde/Graphql_validation_input_type 🔔 Subscribe for more tutorials on GraphQL + FastAPI + Python 💬 Comment below if you want advanced validation or mutation examples next!
Download
0 formatsNo download links available.