Skip to content

How to implement default values for Entities #16

@dmurta1

Description

@dmurta1

Describe what is wrong
There is no explanation on how to set default values for different entities

Describe what was expected
A cookbook section exemplifying how to set default values for $date (most important), $store and at least one more example

Additional context
New users may create 2 different responses/scripts, one with a default value, and another one with a entity to be used as filter, for example

  • Response with the keywords "sales", so user can search for sales with a hardcoded date
  • Response with the keywords "sales" and "$date", so user can search for sales with a $date as dynamic filter

The example above is a bad pattern, and can be easily replaced by a optional "$date" with a default value

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