mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 10:58:37 -06:00
9856 GFK working
This commit is contained in:
parent
0d70dbc387
commit
1734a03074
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