From 6272e8bbffb27e170be8bbe34f93f9d61022e9b8 Mon Sep 17 00:00:00 2001 From: dblythy Date: Tue, 3 Nov 2020 07:21:29 +1100 Subject: [PATCH] Update cloud-code.md --- _includes/cloudcode/cloud-code.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/cloudcode/cloud-code.md b/_includes/cloudcode/cloud-code.md index e240920c7..ebf42f8d9 100644 --- a/_includes/cloudcode/cloud-code.md +++ b/_includes/cloudcode/cloud-code.md @@ -127,9 +127,9 @@ If there is an error, the response in the client looks like: ## Implementing cloud function validation -*Available only on parse-server cloud code starting 4.-.-* +*Available only on parse-server cloud code starting 4.4.0* -It's important to make sure the parameters required for a Cloud function are provided, and are in the necessary format. Starting with Parse Server 4.-.-, you can now specify a validator function or object which will be called prior to your cloud function. +It's important to make sure the parameters required for a Cloud function are provided, and are in the necessary format. Starting with Parse Server 4.4.0, you can now specify a validator function or object which will be called prior to your cloud function. Let's take a look at the `averageStars` example. If you wanted to make sure that `request.params.movie` is provided, and `averageStars` can only be called by logged in users, you could add a validator object to the function.