davazp / graphql-mode

An Emacs mode for GraphQL
GNU General Public License v3.0
162 stars 31 forks source link

Implement support for loading graphql-configs #35

Closed TOTBWF closed 5 years ago

TOTBWF commented 5 years ago

This PR implements the changes mentioned in #34. Specifically, graphql-select-endpoint will load the nearest .graphqlconfig file, and set graphql-url and graphql-extra-headers based off of it.

davazp commented 5 years ago

Pretty cool! I didn't know the existance of .graphqlconfig.

So this is completely optional, the user is still able to specify variables manually. Looks great!