How to generate a typed Python SDK for a GraphQL API
I'm trying to set up a nice Python client for a GraphQL API managed by a separate team (in a different language): We want to provide useful type hints + autocomplete without introducing overly onerous maintenance requirements for our Python layer. I saw that gql looks popular and offers a Python DSL for building queries against schemas... So was thinking to take that and: Use introspection (e.g. here in graphql-core) on the endpoint to fetch a GraphQL Schema Definition Language description Build that schema (or some transformation of it) into our Python library in an automated pipeline, so we
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.