Content Delivery API > Custom Scalar Types

    Custom Scalar Types

    The API references a number of custom GraphQL Scalar Types. If you're using code generators to transform GraphQL types coming from the Content Delivery API to TypeScript, here's the list of mappings you need to specify:

    BooleanType: boolean
    CustomData: Record<string, string>
    Date: string
    DateTime: string
    FloatType: number
    IntType: number
    ItemId: string
    JsonField: unkown
    MetaTagAttributes: Record<string, string>
    UploadId: string