Skip to content

Instantly share code, notes, and snippets.

View mikel-at-tatari's full-sized avatar

Michael Librodo mikel-at-tatari

View GitHub Profile
@mikel-at-tatari
mikel-at-tatari / gql_deprecate_field.py
Last active March 12, 2024 16:42
Backwards compatible fieldname deprecation in GraphQL
from __future__ import annotations
import dataclasses
from copy import deepcopy
from typing import Any
from graphene import ResolveInfo
from graphene.types.inputobjecttype import InputObjectTypeOptions