Vlix · GitHub

Merged

Merged

Conversation

… and new Filter operators (@>.) and (<@.)

MaxGabriel

-- null @> 23 --> False
-- null @> "null" --> False
-- null @> {} --> False
-- @
-- Any empty Object matches any object
-- @
-- {"a":1,"b":false} @> {} --> True
-- @
(@>.) :: EntityField record Value -> Value -> Filter record
(@>.) field val = Filter field (Left val) $ BackendSpecificFilter " @> "

-- | Same as `(<@.)` except the inclusion check is reversed.
case eitherDecodeStrict bs of
Left str -> Left $ fromPersistValueParseError "FromJSON" bs $ T.pack str
Right v -> Right v
fromPersistValueJsonB x = Left $ fromPersistValueError "FromJSON" "string or bytestring" x
* Upgraded the randomValues function in DataTestTypes.hs to actually have random values everytime
* small OCD
…work because of it

MaxGabriel

@MaxGabriel

Labels

None yet

Read the original on github.com ↗