TLDR: deprecate the netzo.api plugin and the notion of resources (denokv, http, custom) and hooks in favor of a netzo.db plugin and the notion of database collections. Integrations are already better covered by the API and database plugins under netzo/integrations.
[x] replace netzo.api plugin with netzo.db
[x] remove resources code
[x] remove hooks code
[x] remove errors code
[x] get search param filters working
[ ] add collection.hooks option using hooks to allow resolving data (before) e.g. for setting defaults and result (after) e.g. for omitting sensible fields and/or populating relations. A single hooks array should be provided (instead of one per method) in favor of hooks using ctx.method for control flow.
TLDR: deprecate the
netzo.api
plugin and the notion of resources (denokv, http, custom) and hooks in favor of anetzo.db
plugin and the notion of database collections. Integrations are already better covered by the API and database plugins undernetzo/integrations
.netzo.api
plugin withnetzo.db
collection.hooks
option using hooks to allow resolving data (before) e.g. for setting defaults and result (after) e.g. for omitting sensible fields and/or populating relations. A singlehooks
array should be provided (instead of one per method) in favor of hooks usingctx.method
for control flow.