You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now is not permitted within index bindings. There is disclaimer that the result will not be what is intended, but in fact using Now can cause a runtime error that prevents the index from ever completing.
// Now() should not be used in bindings since it does not provide correct results,
// Something I did not know at the time of writing.
// Instead please use either a created_at time you store on the document
// or an updated time instead. We'll update the app from the moment I find time to test
// an alternative approach.
txtime: Now(),
Fweets should have a created_at field that can be referred to in the index binding. This is also more correct anyway, since created_at timestamp is better to use than the latest updated time stamp.
The text was updated successfully, but these errors were encountered:
Fweets are created with a created field set to Now(). Updating the index bindings to Select(["data", "created"], Var("fweet")) looks like it should resolve things.
Now
is not permitted within index bindings. There is disclaimer that the result will not be what is intended, but in fact usingNow
can cause a runtime error that prevents the index from ever completing.fwitter/src/fauna/setup/fweets.js
Lines 139 to 146 in fcfc52c
Fweets should have a
created_at
field that can be referred to in the index binding. This is also more correct anyway, sincecreated_at
timestamp is better to use than the latest updated time stamp.The text was updated successfully, but these errors were encountered: