Skip to content

Improve the entity creation workflow #3

@Piquinikis

Description

@Piquinikis

When we need to create a new schema instance, there is a lot of repetitive tasks that sometimes it's finished in a copy/paste action.

For example:

export function getOrCreateOrder(id: string): Order {
	let entity = Order.load(id)
	if (entity == null) {
		entity = new Order(id)
		entity.cancelled = false
	}
	return entity as Order
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions