title: Why can´t I access the request.query?
body: <p>this is my first post so bare with me please.</p>
  <p>We are currently working on our first Web-Project and have our problems finding the issues within our project. The project we are working on is a simple website for students to see which groups and modules they have joined. One example for a page is the group-overview which display one group with its members and some other data. The content of the member-table should be filled dynamically based on the group you currently selected. We tried to get this information within the function to fill the table by simply calling &quot;request.query&quot; but the received object is empty.</p>
  <p>I´ll leave the code below. Sorry in advance if I have missed any necessary information - feel free to contact me.</p>
  <p><strong>Client-Side Fetch:</strong></p>
  <pre><code>fetch('/getStudentsIntoTable')
      .then (response =&gt; 
      {
          console.log(response);
          return response.text();
      }).then (text =&gt;
      {
          document.getElementById(&quot;tableStudentGroup&quot;).innerHTML = text; 
      })
  </code></pre>
  <p><strong>Server-Side Get-Request:</strong></p>
  <pre><code>app.get(&quot;/getStudentsIntoTable&quot;, (request, response, next) =&gt; {
      console.log(request.query); &lt;!-- This hands back &quot;{}&quot; --&gt;
      let userID = request.session.userId;
      let abfrage = &quot;SELECT * FROM User ORDER BY 'Nachname'&quot;;
      connection.query(abfrage, function(err, result, fields)
      {
          if (err) response.send(&quot;Es konnten keine Daten abgerufen werden.&quot;);
          if (result != null)
          {
              var resultString = &quot;&quot;;
              for (var i = 0; i &lt; result.length; i++)
              {
                  resultString += &quot;&lt;tr&gt;&lt;td&gt;&quot; + result[i].User_ID + &quot;&lt;/td&gt;&quot; + &quot;&lt;td&gt;&quot; + result[i].Vorname + &quot; &quot; + result[i].Nachname + &quot;&lt;/td&gt;&quot; + &quot;&lt;td&gt;&quot; + result[i].E_Mail + &quot;&lt;/td&gt;&lt;/tr&gt;&quot;;
              }
              response.send(resultString);
          }
      });
  });
  </code></pre>
  <p>The URL Looks like this:
  &quot;http://localhost:3000/Gruppe/?Gravelshipping++&quot;</p>