Skip to Content

createApiExpandParamSchema()

function createApiExpandParamSchema<TFields>(fields): ZodOptional<ZodUnion<readonly [ZodArray<ApiExpandFieldSchema<TFields>>, ZodPipe<ZodPipe<ZodString, ZodTransform<string[], string>>, ZodArray<ApiExpandFieldSchema<TFields>>>]>>;

The related resources a request asks to have included, as ?expand=a,b or as an array.

Type Parameters

TFields

TFields extends readonly [string, string]

Parameters

fields

TFields

Last updated on