Replies: 3 comments 1 reply
-
Not exactly sure what you mean, but you can mock data with fixtures and interceptors. If you want to create a random Entity instance, you can use Entity.fromJS like: const instance = MyEntity.fromJS({title: 'my title'}); |
Beta Was this translation helpful? Give feedback.
-
Hi, Thank you for your response. I guess a better phrasing of the question would be a good way to associate extra meta data with each field. Right now, I see that we have
And maybe define a function |
Beta Was this translation helpful? Give feedback.
-
Ok, revised my strategy. Instead of generate faker from
|
Beta Was this translation helpful? Give feedback.
-
Hi,
Found this lib and really impressed with all the thinking and works here.
At my company, we try to find a way generate faker obj with
Entity
. Is there a recommended way to specify some meta data likefaker
field withEntity
property? Maybe decorator?Thanks
Beta Was this translation helpful? Give feedback.
All reactions