Class: Model

Model(props)

new Model(props)

Parameters:
Name Type Description
props Object An object representing a single model
Mixes In:
Source:

Extends

  • Component

Members

(static) editable_props

Source:

(static) plural

Source:

(static) reserved_props

Source:

(static) singular

Source:

api_url

Source:
Source:

calculatedProperties

Source:

id

Source:

is_query

Source:

mutableState

Source:

non_reserved_props

Source:

pagination_props

Source:

plural

Source:

primaryKey

Source:

query_prop

Source:

query_props

Source:

schema

Source:

singular

Source:

url

Source:

Methods

(static) addModel()

Source:

(static) allModels()

Source:

(static) boot()

Source:
To Do:
  • Implement this as a way to add instantiation items

(static) extractInstancesFromUrl()

Source:

(static) get_non_reserved_props()

Source:

(static) getModel()

Source:

(static) getPrimaryKey()

Source:

(static) getRegex()

Source:

(static) getSchema()

Source:

(static) matchUrlPath()

Source:

(static) resolveInstancesFromUrl()

Source:

all()

Mixes In:
Source:

all()

Mixes In:
Source:

create()

Store the model's state back to the database
Mixes In:
Source:

create()

Store the model's state back to the database
Mixes In:
Source:

filterMutable()

Source:

find()

(STATIC) - Query the data store and return the model with the supplied id
Mixes In:
Source:

find()

(STATIC) - Query the data store and return the model with the supplied id
Mixes In:
Source:

first()

Mixes In:
Source:

first()

Mixes In:
Source:

firstWhere()

Mixes In:
Source:

firstWhere()

Mixes In:
Source:

get_non_reserved_props()

Source:

get_query_endpoint()

Source:

get_query_prop()

Source:

hydrate()

Source:

list()

(STATIC) - Return all models from the data store
Mixes In:
Source:

list()

(STATIC) - Return all models from the data store
Mixes In:
Source:

queryRender()

Source:

refresh_static()

Mixes In:
Source:

refresh_static()

Mixes In:
Source:

render()

Source:

renderDebug()

Source:

set_render()

Source:

where()

(STATIC) - TODO -- Work in Progress -- DO NOT USE
Mixes In:
Source:

where()

(STATIC) - TODO -- Work in Progress -- DO NOT USE
Mixes In:
Source: