Skip to content

ProjectedQueryConfig

type ProjectedQueryConfig<Schema, ProjectionSchema> = QueryConfig<Schema> & object;

Configuration for the ProjectedQuery command.

projection: Projection;
projectionSchema: ProjectionSchema;

Schema extends ZodObject

The Zod schema defining the structure of the entity.

ProjectionSchema extends ZodObject

The Zod schema defining the structure of the projected attributes.