Replies: 1 comment
|
Hi @SABKraken @Field({ parse: (_, data) => data['12345'] })
public someField!: MyType; |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi there,
one of the field in the request from the database/table is not a fixed field name like id or name, but a dynamic id.
For example:
"12345": { "firstname": "Nik", "givenname": "Johnson" }"12345" <== the dynamic id
In the next reuqest it could be "23456" or so...
Q: How i must declare the
@Field()for the Model in Angular for this case?Thanks in advance and kind regards
SAB Kraken
All reactions