Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure functions apollo returns string, not JSON, should return real JSON #884

Closed
PhilAndrew opened this issue Mar 16, 2018 · 4 comments
Closed

Comments

@PhilAndrew
Copy link

PhilAndrew commented Mar 16, 2018

In azureFunctionsApollo.js line 26:

I had to change from
body: gqlResponse,
to
body: JSON.parse(gqlResponse),

Then it worked correctly. Before this fix the problem was that a string was being returned and not real JSON.

    "apollo-cache-control": "0.0.9",
    "apollo-server-azure-functions": "^1.3.2",
    "apollo-server-core": "^1.3.2",

Pull request
#885

@denisw
Copy link

denisw commented Mar 19, 2018

I have the very same problem. This makes apollo-server-azure-functions unusable currently.

@PhilAndrew
Copy link
Author

This pull request can be automatically merged by project collaborators

@sachduce
Copy link

sachduce commented Apr 9, 2018

Can you please share the code to write azure function, unable to access apollo server using azure function

@abernix
Copy link
Member

abernix commented Apr 18, 2018

This should be fixed with #753. Thanks for raising this originally!

@abernix abernix closed this as completed Apr 18, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants