9856 GFK working
This commit is contained in:
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",
|
||||
)
|
Reference in New Issue
Block a user