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

Mutations in apollo devtools #35

Closed
ryannealmes opened this issue May 12, 2017 · 14 comments
Closed

Mutations in apollo devtools #35

ryannealmes opened this issue May 12, 2017 · 14 comments

Comments

@ryannealmes
Copy link
Contributor

I can't seem to find mutations in the apollo devtools. I would have thought it would work just like any other query.

Is this be design? Is there an enhancement planned? Am I just missing it?

Thanks.

@bartlett705
Copy link

I am pretty sure this is do-able, and I plan on taking a crack at it very soon!

@stubailo
Copy link
Contributor

You mean the mutations that are currently attached to components in the UI, like the query panel?

Or a log of mutations?

Right now, you can already do mutations via GraphiQL, it would be good to get some more info about what you would like to know about mutations.

@ryannealmes
Copy link
Contributor Author

ryannealmes commented May 12, 2017

Yes like the mutations attached to components. Yes like the query panel.

Right now in apollo devtools you can only view a list of Watched queries run. Mutations are not included. I am not talking about graphiql, I am talking about the apollo devtools chrome application.

Not sure what more information I can give. Happy to try though :) Would dig this functionality.

@stubailo
Copy link
Contributor

Yeah, being able to easily get the mutations from your code and see when they are called, and maybe call them yourself (even triggering the optimistic updates, etc) would be pretty sweet!

@ryannealmes
Copy link
Contributor Author

Hey guys I have made this change. Check it out and let me know what you think :)

@tnrich
Copy link
Contributor

tnrich commented May 18, 2017

@ryannealmes where can we check this out?! Nice work!

@ryannealmes
Copy link
Contributor Author

You can pull down the repo and follow the readme to install the chrome extension

After cloning this repo, compile the extension bundle:

cd apollo-client-devtools
npm install
npm run build
Install the extension in Chrome:

Open chrome://extensions
Enable the 'Developer Mode' checkbox
Click 'Load unpacked extensions...'
Select the apollo-client-devtools/extension folder

Note there is a dependency on the latest version of the apollo-client. This unfortunately couldn't be avoided. If you don't have the latest version, the mutations tab will not display.

Ping me with any feedback :)

@tnrich
Copy link
Contributor

tnrich commented May 19, 2017

I'm not seeing the mutations tab after following the above instructions.. I have what I believe is the latest apollo version "apollo-client": "1.2.2"

Anything you think I might be doing wrong?

image

@ryannealmes
Copy link
Contributor Author

Sorry looking at the apollo-client, they haven't released a new version yet. You can always modify your node_modules apollo-client directly if you just want to see it working. You can get the PR here apollographql/apollo-client#1699

I just changed timezones so my responses may be a bit delayed.

@tnrich
Copy link
Contributor

tnrich commented May 30, 2017

@ryannealmes did they release a new version? I saw they released this 4 days ago: https://github.com/apollographql/apollo-client/releases/tag/v1.3.0

@ryannealmes
Copy link
Contributor Author

There are some changes they want done which I need to do. Haven't had enough time to get to it. You can see the changes and add any comments on the PR.
#36

@rrdelaney
Copy link
Contributor

PR is merged 😄 I'll close this when the feature is released

@tnrich
Copy link
Contributor

tnrich commented Jun 26, 2017

Looks like this has been released?! Anyone want to verify that?

@ramyanaga
Copy link
Contributor

It has been released!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants