strawberry-graphql 0.234.0__py3-none-any.whl → 0.234.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- strawberry/relay/types.py +10 -2
- {strawberry_graphql-0.234.0.dist-info → strawberry_graphql-0.234.1.dist-info}/METADATA +1 -1
- {strawberry_graphql-0.234.0.dist-info → strawberry_graphql-0.234.1.dist-info}/RECORD +6 -6
- {strawberry_graphql-0.234.0.dist-info → strawberry_graphql-0.234.1.dist-info}/LICENSE +0 -0
- {strawberry_graphql-0.234.0.dist-info → strawberry_graphql-0.234.1.dist-info}/WHEEL +0 -0
- {strawberry_graphql-0.234.0.dist-info → strawberry_graphql-0.234.1.dist-info}/entry_points.txt +0 -0
strawberry/relay/types.py
CHANGED
@@ -220,14 +220,22 @@ class GlobalID:
|
|
220
220
|
|
221
221
|
"""
|
222
222
|
type_def = info.schema.get_type_by_name(self.type_name)
|
223
|
-
|
223
|
+
if not isinstance(type_def, StrawberryObjectDefinition):
|
224
|
+
raise GlobalIDValueError(
|
225
|
+
f"Cannot resolve. GlobalID requires a GraphQL type, "
|
226
|
+
f"received `{self.type_name}`."
|
227
|
+
)
|
224
228
|
|
225
229
|
origin = (
|
226
230
|
type_def.origin.resolve_type
|
227
231
|
if isinstance(type_def.origin, LazyType)
|
228
232
|
else type_def.origin
|
229
233
|
)
|
230
|
-
|
234
|
+
if not issubclass(origin, Node):
|
235
|
+
raise GlobalIDValueError(
|
236
|
+
f"Cannot resolve. GlobalID requires a GraphQL Node type, "
|
237
|
+
f"received `{self.type_name}`."
|
238
|
+
)
|
231
239
|
return origin
|
232
240
|
|
233
241
|
@overload
|
@@ -174,7 +174,7 @@ strawberry/quart/views.py,sha256=SDUaDX7bPKsv8PziMPb0C3nH6vre-Q3bhzSQp4uPjbY,340
|
|
174
174
|
strawberry/relay/__init__.py,sha256=Vi4btvA_g6Cj9Tk_F9GCSegapIf2WqkOWV8y3P0cTCs,553
|
175
175
|
strawberry/relay/exceptions.py,sha256=b7sU2MhHVWJOfq27lvqdFcqBZ5P_JWk41JWRjtP-AOI,3916
|
176
176
|
strawberry/relay/fields.py,sha256=4V8jhPDECx0hPqtc0ZsNxvmhRYMf5whD_686O2-6_Dc,15934
|
177
|
-
strawberry/relay/types.py,sha256=
|
177
|
+
strawberry/relay/types.py,sha256=BvdgNtJy1UGiPm0ZZtcphJEmJsouCIVSOz5Ks2zoVos,29589
|
178
178
|
strawberry/relay/utils.py,sha256=44zl0_iXZElQ35YQkguccCGandKTovqiU5tpve9Ceb4,5575
|
179
179
|
strawberry/resolvers.py,sha256=g7_g3jmXszziGydY1UG6IItf9s6B1lGLUCnwW1kb8U0,224
|
180
180
|
strawberry/sanic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -245,8 +245,8 @@ strawberry/utils/logging.py,sha256=flS7hV0JiIOEdXcrIjda4WyIWix86cpHHFNJL8gl1y4,7
|
|
245
245
|
strawberry/utils/operation.py,sha256=Um-tBCPl3_bVFN2Ph7o1mnrxfxBes4HFCj6T0x4kZxE,1135
|
246
246
|
strawberry/utils/str_converters.py,sha256=avIgPVLg98vZH9mA2lhzVdyyjqzLsK2NdBw9mJQ02Xk,813
|
247
247
|
strawberry/utils/typing.py,sha256=G92wuT2WhEGQrwjek_On2K8l0nyVFtBW3P7I_cfjG-8,13870
|
248
|
-
strawberry_graphql-0.234.
|
249
|
-
strawberry_graphql-0.234.
|
250
|
-
strawberry_graphql-0.234.
|
251
|
-
strawberry_graphql-0.234.
|
252
|
-
strawberry_graphql-0.234.
|
248
|
+
strawberry_graphql-0.234.1.dist-info/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
|
249
|
+
strawberry_graphql-0.234.1.dist-info/METADATA,sha256=SMX3dgkXEo7VgOSIS2yyZI1hQK5JYJtdDpadTMlwots,7821
|
250
|
+
strawberry_graphql-0.234.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
251
|
+
strawberry_graphql-0.234.1.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
|
252
|
+
strawberry_graphql-0.234.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{strawberry_graphql-0.234.0.dist-info → strawberry_graphql-0.234.1.dist-info}/entry_points.txt
RENAMED
File without changes
|