Meta

Meta holds non-standard meta-information associated with resources and collections

new Meta()
Instance Members
constructor(cursor)
get(path)
set(path, value)
unset(path)
replace(obj)
serialize()

Resource

Resource corresponds to a single item JSON API payload

new Resource()
Static Members
fromObject(doc)
create(type, id)
Instance Members
get(path = in)
set(path, value)
unset(path)
replace(attributes)
relationship(name, options = ed)
serialize(options?)

Collection

Collection corresponds to a multi-item JSON API payload

new Collection()
Static Members
fromObject(doc)
create()
Instance Members
at(index)
push(item, included)
concat(items, included)
splice(start, deleteCount, items, included)
insert(index, item, included)
serialize(options?)

Identifier

Identifier uniquely identifies a JSON API resource

Identifier

Type: {type: string, id: string}

Item

Item describes a data entry in a JSON API payload

Item

Type: {id: string?, type: string, attributes: {}?, relationships: {}?}

Payload

Payload describes the fields in a JSON API object

Payload

Type: {jsonapi: {version: "1.0"}?, data: (Item | Array<Item>)?, errors: Array<ErrorItem>?}

Result

Result allows safe access to the result of a computation that can have one, many or no values of a given type T

Result

Serializable

Serializable types can be converted into a Payload object

Serializable

Accessor

Accessor types can retrieve a value at a given key path

Accessor

Mutator

Mutator types can set and unset a value at a given key path

Mutator

Model

Model defines fields and methods to access and mutate JSON API single-item payloads

Model

List

List defines fields and methods to access and mutate JSON API collection payloads

List