Module

Identy.Selector

#resources

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

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

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

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.

Modules