Metaclass hack for injecting model information into a Query Parameter Model; this allows to add dynamically computed information in a parametrized generic model which can then be used as static type in a FastAPI context.
E.g. in the following, order-able fields of the Author
model are computed
at "parametrization-time" of the QueryParamteres
model.
query = """
select *