Replies: 1 comment
-
Hi @SABKraken @Field({ parse: (_, data) => data['12345'] })
public someField!: MyType; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
Beta Was this translation helpful? Give feedback.
All reactions