Skip to content

Commit

Permalink
Commit missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalp committed Apr 18, 2024
1 parent 214f591 commit 925c5bd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ariadne_graphql_proxy/unwrap_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from typing import cast

from graphql import (
GraphQLType,
GraphQLNamedType,
GraphQLWrappingType,
)


def unwrap_graphql_type(type_: GraphQLType) -> GraphQLNamedType:
if isinstance(type_, GraphQLWrappingType):
return unwrap_graphql_type(type_.of_type)

return cast(GraphQLNamedType, type_)

0 comments on commit 925c5bd

Please sign in to comment.