Graphcool / graphcool-framework

Apache License 2.0
1.77k stars 131 forks source link

`graphcool reset -t dev` not work when on local dev #487

Open huan opened 6 years ago

huan commented 6 years ago

Please post usage questions or broader discussions in the Forum.

I had set up a local dev environment for testing:

$ graphcool local up
$ graphcool deploy -t dev

For bug reports, please fill in the next sections:

Current behavior

After some data creation, I want to reset/clear all the data in the local dev database, so I run

$ graphcool reset -t dev
? Are you sure that you want to reset the data of graphql (cje8q7go30004017072lm7r5f)? y/N y
Resetting data for service graphql (cje8q7go30004017072lm7r5f)... ⣽

But the reset operation does not succeed because:

  1. the command response with a instead of the
  2. I still can see them by a query

Reproduction

$ graphcool local up
$ graphcool init -t dev
$ graphcool deploy -t dev
$ graphcool reset -t dev

If your problem can be reproduced with a certain service definition, please create a new GitHub repository with the reproduction instructions.

I can found resetProjectData mutation at https://api.graph.cool/system, but can not found it at http://localhost:60000/system

Expected behavior?

Reset all the data.