How to access query parameters in Netlify function