Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next api subscription #43

Merged
merged 1 commit into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ariadne_graphql_modules/next/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from .uniontype import GraphQLUnion, GraphQLUnionModel
from .value import get_value_from_node, get_value_node
from .interfacetype import GraphQLInterface, GraphQLInterfaceModel
from .subscriptiontype import GraphQLSubscription, GraphQLSubscriptionModel

__all__ = [
"GraphQLEnum",
Expand All @@ -30,6 +31,8 @@
"GraphQLInputModel",
"GraphQLInterface",
"GraphQLInterfaceModel",
"GraphQLSubscription",
"GraphQLSubscriptionModel",
"GraphQLMetadata",
"GraphQLModel",
"GraphQLObject",
Expand Down
8 changes: 4 additions & 4 deletions ariadne_graphql_modules/next/interfacetype.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ def __get_graphql_model_with_schema__(
for arg_name, arg_options in final_args.items():
arg_description = get_description_node(arg_options.description)
if arg_description:
args_descriptions[cls_attr.field][arg_name] = (
arg_description
)
args_descriptions[cls_attr.field][
arg_name
] = arg_description

arg_default = arg_options.default_value
if arg_default is not None:
Expand Down Expand Up @@ -150,7 +150,7 @@ def __get_graphql_model_without_schema__(

if attr_name in type_aliases:
aliases[field.name] = type_aliases[attr_name]
elif attr_name != field.name:
elif attr_name != field.name and not field.resolver:
aliases[field.name] = attr_name

if field.resolver:
Expand Down
Loading
Loading