Module

Identy.Selector

Package
purescript-identy
Repository
oreshinya/purescript-identy

#resources Source

resources :: forall a. Object a -> Array String -> Array a

Get entity array with an object stored entities and an array stored identifiers.

#resource Source

resource :: forall a. Object a -> Maybe String -> Maybe a

Get an entity with an object stored entities and an identifier.

#assocs Source

assocs :: forall a. Object a -> Object (Array String) -> Maybe String -> Array a

Get child entity array with an object stored child entities, an object stored has-many associations and an identifier of parent.

#assoc Source

assoc :: forall a. Object a -> Object String -> Maybe String -> Maybe a

Get a child entity with an object stored child entities, an object stored has-one associations and an identifier of parent.