mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 04:22:01 -06:00
9856 GFK working
This commit is contained in:
parent
1aa5b0d5a1
commit
c3cbefc625
10
netbox/netbox/graphql/scalars.py
Normal file
10
netbox/netbox/graphql/scalars.py
Normal file
@ -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",
|
||||
)
|
Loading…
Reference in New Issue
Block a user