Schema

There is a function to get the schema available to a calling client:

from djaq.app_utils import get_schema
print(get_schema())

Pass the same whitelist you use for exposing the query endpoint:

wl = {"books": []}
print(get_schema(whitelist=wl))

You can get the schema from the DQ object as well:

DQ("Book").schema_all()

Or a specific model:

DQ("Book").schema