Skip to content
Discussion options

You must be logged in to vote

This is mainly due to a mismatch between Date and Optional<Date>. Both of the following disambiguate things:

// Use `#bind` macro to give the query language a hint.
$0.timestamps.deleted = #bind(Date())

// Make optionality explicit:
$0.timestamps.deleted = Optional(Date())

We can explore making this nicer, though. Thanks for the example!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@seanmrich
Comment options

Answer selected by seanmrich
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants