accounts icon indicating copy to clipboard operation
accounts copied to clipboard

Graphql mutation examples

Open derblitz opened this issue 5 years ago • 2 comments

Currently there are 3 examples showing how to execute graphql mutation queries directly in the graphql playground: https://github.com/accounts-js/accounts/tree/master/examples/graphql-server-typescript

These 3 examples refer to:

  1. Create user
  2. Authenticate
  3. Test of private field

I think it would be great to have examples for all functionalities (login, password reset etc.). This would make the library more transparent. I've seen in the react graphql client example that login, password reset etc. are part of some modules so you don't need to execute graphql on client side yourself - nevertheless I would consider it as helpful to have examples that make it possible to test all available functions of accounts-js.

Please just close this issue if you consider it unimportant.

derblitz avatar Apr 08 '19 14:04 derblitz

I'm willing to do a full blog post on it with example repo if I can get a little more guidance on getting started with apollo-server and mongodb: https://github.com/accounts-js/accounts/issues/747

I'm with you that the documentation needs a little more love-- of course that's always easier said than done. I'd like to help.

I've been using meteor/apollo-server and this package https://github.com/orionsoft/meteor-apollo-accounts which was pretty easy to get going. It would be awesome if we can make this just as easy to get started with.

acomito avatar Jul 27 '19 15:07 acomito

Hey @acomito for now you can take a look at the examples to see how to get started https://github.com/accounts-js/accounts/tree/master/examples :)

pradel avatar Jul 30 '19 12:07 pradel