# X_ADMIN_REPO_UNBOUND

## Means

an admin resource has no database handle to read rows through

## Typical cause

defineAdmin() was given an entity and neither a db handle that carries it nor a per-resource repo. Refused at declaration: a resource with no repo is a list, a detail and a form that all fail on their first request

## Fix

`pass the app's handle once: defineAdmin({ entities, db })` — or resources: { <entity>: { repo } } for one resource

[Admin and manifest](/error-codes#admin-and-manifest)
