Back4app, the best . Getting all my server there , and not going to swap anytime soon. Best support, best community .
@catalunham.j.18952 жыл бұрын
Create the birthDate field and test this query: query.exists('birthDate'); See open and do leave and enter for the birthDate field. See that the type of birthDate changes in liveQuery from Date to String. And this can break some apps.
@Back4App2 жыл бұрын
Hey Catalunha, M.J.! Thank you for the comment! You gotta remember that when sending data in the JSON format, the Dates are encoded as string objects, such as "createdAt":"2022-05-13T16:14:14.819Z". That said, those dates are correctly formatted Date() objects so you can cast to Date() whenever needed. This is due to the characteristics of the JSON format and not an issue at all. ;)
@thomasmabika72913 жыл бұрын
is there any method that combines onCreate and onUpdate? I want to refresh the UI either when something is created or updated.
@Back4App3 жыл бұрын
Unfortunately those are two distinct events so you would have to subscribe to both and have a function called in each.