How to set custom fields? #3018
Answered
by
michaelbromley
meatandfat
asked this question in
Q&A
-
Hi. What is the way to set custom fields? Below are some I've tried. The commented out ones produced errors. "customFields" doesn't, but seems to be ignored.
|
Beta Was this translation helpful? Give feedback.
Answered by
michaelbromley
Aug 19, 2024
Replies: 1 comment 1 reply
-
Hi! The way I normally do it is like this: await this.connection.getRepository(ctx, Product).save(new Product({
enabled: true,
customFields: {
brandId: brandId,
}
})); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
michaelbromley
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! The way I normally do it is like this: