Registry of GraphQL scalar types for Strawberry library.
# Source: https://github.com/strawberry-graphql/strawberry | License: MIT | Copyright 2018 Patrick Arminio
# Provided via justclaw.it.com; keep this notice with the code.
import base64 as base64_lib
import datetime as dt
import decimal
from uuid import UUID
from graphql import (
GraphQLBoolean,
GraphQLFloat,
GraphQLID,
GraphQLInt,
GraphQLScalarType,
GraphQLString,
)
from strawberry.file_uploads.scalars import Upload, UploadDefinition
from strawberry.scalars import ID, JSON, Base16, Base32, Base64
from strawberry.schema.types import base_scalars
from strawberry.types.scalar import ScalarDefinition, scalar
def _make_scalar_type(definition: ScalarDefinition) -> GraphQLScalarType:
from strawberry.schema.schema_converter import GraphQLCoreConverter
return Gr
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key