Creating a Factory
const entityFactory = new EntityFactory({
adapter: new OjectAdapter(),
blueprints: [
new UserBlueprint(), // blueprint instance
PostBlueprint, // blueprint reference
],
});factory.register(profile | callback(profile))
factory.for(key)
factory.gen(count, callback)
Last updated
Was this helpful?