-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
Return passed-in value from mutation #80
Comments
@LeeroyJenks Thanks a lot for detail example 👍 |
@IvanGoncharov that was perfect, thank you! Works flawlessly now. Although now when I set up a fake time like so: Am I doing something wrong? Should I open another issue? Edit: Thanks again! Extremely useful tool |
@LeeroyJenks GraphQL doesn't define any type beyond
|
I guess it was working before because I was extending an existing graphql endpoint. Thank you! |
@IvanGoncharov this fix appears to be affecting mutations that are not faked or have fields that are not faked ie passed straight through to a real graphql backend, I think it should only be applied to faked fields? |
@alecrae Can you please report it as a separate issue and provide an example? |
@IvanGoncharov sure thing, my colleague has done so in #97 |
Thank you so much for this tool. It's really made it a lot easier for me to work in tandem with our back end team here and hopefully get projects out quicker.
I wanted to be able to have a mutation return the passed-in value.
For example, if I have a type
Lead
:And I extend my
QueryRoot
like so:And then extend my
MutationRoot
:When I run the mutation:
It'll still return a random
id
andstatus
. Is there a way to have it return the passed-in values instead? I want to mimmic a successful mutation of values and check some Apollo caching, which would at the very least require the id to be returned.thanks!
The text was updated successfully, but these errors were encountered: