src/entity/Property.js
/**
   * Return overridden resource factory for Properties. Properties are
   * sub-resources of Thngs and Products and are not allowed on top level
   * Scope classes. This factory also override the default Resource's create
   * and update methods to accept and normalize different types of arguments.
   *
   * @static
   * @return {{property: Function}}
   */
Return overridden resource factory for Properties. Properties are
sub-resources of Thngs and Products and are not allowed on top level
Scope classes. This factory also override the default Resource's create
and update methods to accept and normalize different types of arguments.

@static
@return {{property: Function}}
Return overridden resource factory for Properties . Properties are sub - resources of Thngs and Products and are not allowed on top level Scope classes . This factory also override the default Resource ' s create and update methods to accept and normalize different types of arguments . @static @return {{ property : Function }}
static resourceFactory () {
    return {
      property (id) {
        const thngPath = this instanceof Scope ? this[symbols.path] : ''
        return Object.assign(Resource.factoryFor(Property, thngPath + path).call(this, id), {
          create (...args) {
            return Resource.prototype.create.call(this, ...normalizeArguments(...args))
          },
          update (...args) {
            return Resource.prototype.update.call(this, ...normalizeArguments(...args))
          }
        })
      }
    }
  }
static resourceFactory ( ) { return { property ( id ) { const thngPath = this instanceof Scope ? this [ symbols . path ] : '' return Object . assign ( Resource . factoryFor ( Property , thngPath + path ) . call ( this , id ) , { create ( ... args ) { return Resource . prototype . create . call ( this , ... normalizeArguments ( ... args ) ) } , update ( ... args ) { return Resource . prototype . update . call ( this , ... normalizeArguments ( ... args ) ) } } ) } } }
Return overridden resource factory for Properties.
Return overridden resource factory for Properties .
// Creates and returns Resource of type Property. // Override property resource create/update to allow custom value // params. See `normalizeArguments()`.