diff --git a/python_modules/dagster-graphql/dagster_graphql/schema/pipelines/logger.py b/python_modules/dagster-graphql/dagster_graphql/schema/pipelines/logger.py index e44326b6b7922..2911467528630 100644 --- a/python_modules/dagster-graphql/dagster_graphql/schema/pipelines/logger.py +++ b/python_modules/dagster-graphql/dagster_graphql/schema/pipelines/logger.py @@ -29,6 +29,12 @@ def __init__( def resolve_configField(self, _: ResolveInfo): if self._logger_def_snap.config_field_snap: + try: + # config type may not be present if mode config mapped, null out gracefully + self._get_config_type(self._logger_def_snap.config_field_snap.type_key) + except KeyError: + return None + return GrapheneConfigTypeField( self._get_config_type, field_snap=self._logger_def_snap.config_field_snap, diff --git a/python_modules/dagster-graphql/dagster_graphql/schema/pipelines/resource.py b/python_modules/dagster-graphql/dagster_graphql/schema/pipelines/resource.py index 75f67dc26a634..30875617236de 100644 --- a/python_modules/dagster-graphql/dagster_graphql/schema/pipelines/resource.py +++ b/python_modules/dagster-graphql/dagster_graphql/schema/pipelines/resource.py @@ -32,6 +32,12 @@ def __init__( def resolve_configField(self, _graphene_info: ResolveInfo): if self._resource_def_snap.config_field_snap: + try: + # config type may not be present if mode config mapped, null out gracefully + self._get_config_type(self._resource_def_snap.config_field_snap.type_key) + except KeyError: + return None + return GrapheneConfigTypeField( get_config_type=self._get_config_type, field_snap=self._resource_def_snap.config_field_snap,