We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const def = await this.getEntityDefinition(identifier, true); const factory = await this.getFactoryDefinition(identifier, def.definition); const modifiedKeys = this.getModifiedKeys<T>(def.definition, { includes2, excludes2, override }); const entity = (await factory.build(modifiedKeys)) as T;
Here includes2 and excludes2 are a list of keys which should be included and excluded from the object, which is mixed with override keys.
includes2
excludes2
override
For the values:
excludes2: { email: 1, name: 1, location: 0 }, includes2: { location: 1 }, // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore override: { location: { abcd: 'hello' } }
I get modifiedKeys = { email: undefined, name: undefined, location: { abcd: 'hello' } }
modifiedKeys = { email: undefined, name: undefined, location: { abcd: 'hello' } }
Im getting this result from the build function
"location": { "0": "0", "1": "1", "2": "9", "3": "1", "4": "4", "5": "5", "6": "a", "7": "4", "8": "-", "9": "d", "10": "d", "11": "d", "12": "0", "13": "-", "14": "7", "15": "5", "16": "2", "17": "d", "18": "-", "19": "b", "20": "7", "21": "d", "22": "3", "23": "-", "24": "b", "25": "0", "26": "f", "27": "e", "28": "9", "29": "f", "30": "a", "31": "3", "32": "8", "33": "b", "34": "7", "35": "0", "abcd": "hello" },
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Here
includes2
andexcludes2
are a list of keys which should be included and excluded from the object, which is mixed withoverride
keys.For the values:
I get
modifiedKeys = { email: undefined, name: undefined, location: { abcd: 'hello' } }
Im getting this result from the build function
The text was updated successfully, but these errors were encountered: