RisingStack / graffiti

⚠️ DEVELOPMENT DISCONTINUED - Node.js GraphQL ORM
https://risingstack-graffiti.signup.team/
MIT License
1.01k stars 44 forks source link

feat(util): use relative url instead of hardcoded #40

Closed fiws closed 7 years ago

fiws commented 7 years ago

Make this plugin compatible with all sorts of URL rewrites.

graffiti currently expects a /graphql endpoint absolute to the current URL. This patch fixes that, so that graffiti can be used with spooky URL rewrites. This also theoretically enables to rename /graphql without breaking graphiql (I think)

tothandras commented 7 years ago

Thank you! I'll release soon.