graphql-ide icon indicating copy to clipboard operation
graphql-ide copied to clipboard

How to rename query from collection?

Open kitze opened this issue 7 years ago • 9 comments

First of all, thank you for this project, it's a game changer :)

I downloaded the latest version but I cannot seem to find the option to name/rename when saving a query into collection.

Is it a bug or I just cannot find it?

Thanks!

kitze avatar Jan 10 '17 15:01 kitze

Same issue here... REALLY ANNOYING ;-)

orefalo avatar Feb 01 '17 16:02 orefalo

@kitze @orefalo Totally agree this is annoying. Although it's possible to rename query by renaming them inside the editor, this functionality will be improved in the next release. Thanks for pointing out!

andevsoftware avatar Feb 06 '17 17:02 andevsoftware

?! Inside an editor.. really? I must have missed something, could you provide instructions.

FYI: When inside the editor, the meta information title shows grey out, therefore not editable.

orefalo avatar Feb 06 '17 18:02 orefalo

screen shot 2017-02-06 at 20 43 48 You can change it inside the query editor itself. It will automatically save.

andevsoftware avatar Feb 06 '17 19:02 andevsoftware

graphql_ide But the field is not editable, see above

orefalo avatar Feb 06 '17 20:02 orefalo

@orefalo That's right. Had to be disabled in the initial release the way it's designed. That's it for now.

andevsoftware avatar Feb 07 '17 07:02 andevsoftware

@kitze This is designed this way as you are expecting. Initially I was trying to do that same and also I created a similar issue #23 but later I found how to use this.

Since there is no docs or introductory video for this software / package that's why it's make it difficult to use. However, after hit and trial, I came to know how to set name of a query or mutation or rename it. It is simply name of query itself. If you want to rename it, change the query name. e.g.

query DoIt {
    getFoo(id: 123) {
       name
   }
}

So Doit is the query name which will be shown in Query title as well as window / tab name. Here is a screenshot for more clarification.

screen shot 2017-03-24 at 11 44 18 am

I hope, it's clear now. Stay happy :)

mzohaibqc avatar Mar 24 '17 06:03 mzohaibqc

Ah, thank you very much @mzohaibqc, that will work for me but I will leave this issue open so it's clearer for other devs.

Cheers 🙌

kitze avatar Mar 24 '17 10:03 kitze

nice! but, the user not easy to find this feature.

gunsluo avatar Jan 23 '18 03:01 gunsluo