ENUM Example in Loopback 4 Model
Example file: user.model.ts
enum Role {
SuperAdmin = 1,
Admin,
Subscriber
}
find . -name "node_modules" -exec rm -rf '{}' +; find . -name "package-lock.json" -exec rm -rf '{}' +; |
/** | |
* Returns the list of ancestor classes. | |
* | |
* Example: | |
* ancestors(HTMLElement) .map (e => e.name || e.constructor.name) | |
* => [ "HTMLElement", "Element", "Node", "EventTarget", "Function", "Object" ] | |
*/ | |
function ancestors (anyclass) | |
{ | |
switch (true) { |
import {Duration, Stack, StackProps} from "aws-cdk-lib"; | |
import {Construct} from "constructs"; | |
import {Repository} from "aws-cdk-lib/aws-ecr"; | |
import {Function, LayerVersion, Runtime} from "aws-cdk-lib/aws-lambda"; | |
import {ArnPrincipal, Effect, ManagedPolicy, PolicyStatement} from "aws-cdk-lib/aws-iam"; | |
import {PythonFunction} from "@aws-cdk/aws-lambda-python-alpha"; | |
import {DockerImageAsset} from "aws-cdk-lib/aws-ecr-assets"; | |
import * as path from "path"; | |
import * as ecrdeploy from 'cdk-ecr-deployment'; | |
import {Secret} from "aws-cdk-lib/aws-secretsmanager"; |
ENUM Example in Loopback 4 Model
Example file: user.model.ts
enum Role {
SuperAdmin = 1,
Admin,
Subscriber
}
Terminal: Git Bash OS: Windows
DEBUG
Variable
With the value of application module you want to enable logging for, Checkout this string reference for more.export DEBUG=loopback:core:application
Can also verify the value with echo