opened
weilies
username_0
<!--

IMPORTANT! YOU MUST FOLLOW THESE INSTRUCTIONS OR YOUR ISSUE WILL BE CLOSED.

Thank you for contributing to the Angular and Firebase communities!

Have a usage question?
=======================
We get lots of those and we love helping you, but GitHub is not the best place for them and they will be closed. Here are some resources to get help:

- Go through the Developer's Guide: https://github.com/angular/angularfire2#developer-guide

If the official documentation doesn't help, try asking through our officially supported channels:

- Firebase Google Group: https://groups.google.com/forum/#!forum/firebase-talk
- Stack Overflow: https://stackoverflow.com/questions/tagged/angular (include the firebase and angularfire tags, too!)

*Please avoid double posting across multiple channels!*

Think you found a bug?
=======================
Yeah, we're definitely not perfect! Please use the bug report template below and include a minimal repro when opening the issue.

Have a feature request?
========================
Great, we love hearing how we can improve our products! Remove the template below and
provide an explanation of your feature request. Provide code samples if applicable. Try to
think about what it will allow you to do that you can't do today? How will it make current
workarounds straightforward? What potential bugs and edge cases does it help to avoid?

-->


### Version info

<!-- What versions of the following libraries are you using? Note that your issue may already
be fixed in the latest versions. -->

**Angular:** 9.1.9

**Firebase:** 7.15.0

**AngularFire:** 6.0.0



### Expected behavior
Cloud Function
```
import * as functions from 'firebase-functions';
const cors = require('cors')({ origin: true });
...
export const helloWorldWithCORS = functions.https.onRequest((request, response) => {
    cors(request, response, () => {
        // response.status(200).send({ data: { success: true, message: 'yeah!' } })
        response.status(200).send({ data: { success: true, message: 'yeah!'+request.query.name } })
    })
});
```

Angular TS
```
    const callable = this.afFnc.httpsCallable("helloWorldWithCORS");
    let cloudFncResp: Observable<any> = await callable({ name: "username_0" });

    // console.log(`metadata.fullPath=${metadata.fullPath}`)

    cloudFncResp.subscribe(res => {
      console.log("success with ");
      console.log(res);
    }, console.error);

```
Expected Chrome Console
{success: true, message: "yeah!**username_0**"}

<!-- What is the expected behavior? -->

### Actual behavior
Actual Chrome Console
{success: true, message: "yeah!**undefined**"}

<!-- What is the actual behavior? -->


I tried copy & paste directly and it captured the query string 'name'. But once it run via angular/fire, return undefined. i even manually defined the region in my app module code
```
import {  AngularFireFunctionsModule,  FUNCTIONS_REGION} from "@angular/fire/functions";
...
  providers: [ ...
    { provide: FUNCTIONS_REGION, useValue: "us-central1" }
  ],
```
Cloud function's Query name is undefined
issue
created
weilies
username_0
i resolved it! Just change
`        response.status(200).send({ data: { success: true, message: 'yeah!'+request.query.name } })
`to
`        response.status(200).send({ data: { success: true, message: 'yeah!'+request.body.data.name } })
`
comment
closed
weilies
username_0
issue