Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multiple middleware support #124

Open
imanpalsingh opened this issue Oct 2, 2022 · 0 comments
Open

Add multiple middleware support #124

imanpalsingh opened this issue Oct 2, 2022 · 0 comments
Labels
good first issue Good for newcomers

Comments

@imanpalsingh
Copy link
Owner

imanpalsingh commented Oct 2, 2022

Description

Currently, you can only add one middleware which is sufficient but for complex use cases where you want to separate middlewares for reusability, ability to add more than one middleware is required.

Expected

  1. Ability to define middleware by
export const configuration = {
  connectionUrl: 'postgresql://USER:PASSWORD@HOST:PORT/DATABASE',

  tables: {
    users: [checkIfInactive, checkIfAdmin, maskingRules], // two middlewares - checkIfInactive and checkIfAdmin
  },
};

The middleware logic is currently present in engine.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant