2
0
Arthur 2 жил өмнө
parent
commit
c3cbefc625

+ 10 - 0
netbox/netbox/graphql/scalars.py

@@ -0,0 +1,10 @@
+from typing import Union
+
+import strawberry
+
+BigInt = strawberry.scalar(
+    Union[int, str],  # type: ignore
+    serialize=lambda v: int(v),
+    parse_value=lambda v: str(v),
+    description="BigInt field",
+)