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
use the 'typeof' operator, if it is not a string you can push an error on to the errors array (create one if it does not exist) which is on the context.
should look similar to this if (typeof someValue !== 'string'){ context.errors = context.errors || [] context.errors.push({notString:Field must be a string!}) }
how do you check a body parameter is actually string, rather than number or null or object?
The text was updated successfully, but these errors were encountered: