Skip to content

Glossary: Building APIs with FastAPI

default_factory

A `Field` option that calls a function for every new object to produce its default. It makes each order get its own creation time, instead of one time worked out when the file loads.

Where the book teaches it

Related terms

Table model