From c3cbefc62507904c2a101e0b969f065998647875 Mon Sep 17 00:00:00 2001 From: Arthur Date: Thu, 15 Feb 2024 14:54:29 -0800 Subject: [PATCH] 9856 GFK working --- netbox/netbox/graphql/scalars.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 netbox/netbox/graphql/scalars.py diff --git a/netbox/netbox/graphql/scalars.py b/netbox/netbox/graphql/scalars.py new file mode 100644 index 000000000..d14549f65 --- /dev/null +++ b/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", +)