UNPKG

vanta-api

Version:

Advanced API features and security configuration for Node.js/MongoDB.

31 lines (28 loc) 605 B
export const securityConfig = { allowedOperators: [ "eq", "ne", "gt", "gte", "lt", "lte", "in", "nin", "regex", "exists", "size", "or", "and" ], forbiddenFields: [ "password", ], accessLevels: { guest: { maxLimit: 50, allowedPopulate: ["*"] }, user: { maxLimit: 100, allowedPopulate: ["*"] }, admin: { maxLimit: 1000, allowedPopulate: ["*"] }, superAdmin: { maxLimit: 1000, allowedPopulate: ["*"] }, } };