Module

Identy.Selector

Package
purescript-identy
Repository
oreshinya/purescript-identy

#resources Source

resources :: forall k v. Newtype k String => ObjectMap k v -> Array k -> Array v

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

#resource Source

resource :: forall k v. Newtype k String => ObjectMap k v -> Maybe k -> Maybe v

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

#assocs Source

assocs :: forall k k' v. Newtype k String => Newtype k' String => ObjectMap k v -> ObjectMap k' (Array k) -> Maybe k' -> Array v

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 k k' v. Newtype k String => Newtype k' String => ObjectMap k v -> ObjectMap k' k -> Maybe k' -> Maybe v

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