Arguments

An argument is the value you give to a strapi attribute when it is created. For example, in the following line,

strapi-collection="cards"

cards is said to be the argument.

In the next line,

strapi-into="alt_text -> alt"

alt_text → alt is said to be the argument*.*

There are a few important rules (conforming to the Strapi rest API) that should be remembered when referring to Strapi collection names and field names.:

  • Collections are always described by their plural name: (cards is valid while card is not)
  • If a collection name contains underscores, those underscores should be replaced with dashes when referring to the collection: (some-collection is valid while some_collection is not)
  • Collection names are not case sensitive: (cards is equivalent to Cards)
  • Field names are case sensitive: (name is NOT equivalent to Name)
  • Field names should not have underscores replaced with dashes: (field_name is valid while field-name is not)