title: parse.com cloud code GET function with parameters?
body: <p>I'm writing a cloud code function in parse and I'm trying to figure out how to handle parameters in the GET url.</p>
  
  <p>So I have a simple function like this:</p>
  
  <pre><code>Parse.Cloud.define("someFunction", function(request, response) {
      //  how can I use GET parameters here??
  
  });
  </code></pre>
  
  <p>How to I rename the <code>"someFunction"</code> to handle GET parameters so I can use them in my cloud code function logic?</p>
  
  <p>so for example I want to be able to pass in a name string: <code>"myName"</code> in the GET</p>
  
  <p><a href="https://api.parse.com/1/functions/someFunction" rel="nofollow">https://api.parse.com/1/functions/someFunction</a>?<strong>name=myName</strong></p>
  
  <p>Any simple example? I searched for a while I couldn't find one. </p>
  
  <p>Thank you</p>
  
  <p>EDIT:
  So I modified my function to look like this:</p>
  
  <pre><code>Parse.Cloud.define("someFunction", function(request, response) {
      //  how can I use GET parameters here??
  
      var name = request.params.name
  
      response.success("the name = " + name)
  });
  </code></pre>
  
  <p>then I call it like this:
  <a href="https://api.parse.com/1/functions/someFunction?name=someName" rel="nofollow">https://api.parse.com/1/functions/someFunction?name=someName</a></p>
  
  <p>what I get back is this:</p>
  
  <pre><code>{"result":"the name = **undefined**"}
  </code></pre>