graphiql-app icon indicating copy to clipboard operation
graphiql-app copied to clipboard

Changing URL triggers an API call on every keystroke

Open intellix opened this issue 6 years ago • 0 comments

We've got the app within our URL so change it quite often as switching between them. Two URLs:

http://localhost:8888/graphql?brand=cocacola
http://localhost:8888/graphql?brand=pepsi

Changing cocacola to pepsi results in the following Introspection API calls:

http://localhost:8888/graphql?brand=
http://localhost:8888/graphql?brand=p
http://localhost:8888/graphql?brand=pe
http://localhost:8888/graphql?brand=pep
http://localhost:8888/graphql?brand=peps
http://localhost:8888/graphql?brand=pepsi

Which causes the app/api to grind to a halt

intellix avatar Jun 11 '18 09:06 intellix