Scalars
ZMAG provides wrappers for various scalars, including from Strawberry, to centralize and simplify imports. This reduces the need for multiple import statements in Python files, keeping the code cleaner and more streamlined.
strawberry
To create custom scalars or learn more about how they work, visit the official documentation here.
GraphQL | Python |
---|---|
String |
str |
Int |
int |
Float |
float |
Boolean |
bool |
ID |
zmag.id |
Decimal |
zmag.decimal |
Date |
zmag.date |
Time |
zmag.time |
DateTime |
zmag.datetime |
UUID |
zmag.uuid |
JSON |
zmag.json |