Git Product home page Git Product logo

chromeiql's Introduction

chromeiql's People

Contributors

ermanc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

chromeiql's Issues

Update graphiql version

Hey, thanks for this plugin. Can you update graphiql version? Newer version has "prettify" feature.

Endpoint Header Options

Great Tool! It would be nice if user can also define custom headers to access the endpoint like authorization header.

1.1.0 Release

GraphiQL has had new versions which add things like the much-requested support for HTTP request headers. I assume it should be pretty straightforward to upgrade chromiql to use the latest graphiql version and acquire all the fixes and new features.

@ermanc Any plans for a version update and Chrome app store release? And/or how can the OSS community assist in accomplishing this?

It's not working

I have just installed the Chrome plugin but it seems like it's not working. When the page loads it sends a Graphql request to the endpoint that I have specified, but not with the query that I typed (it uses some other query, don't know where it gets it from). And I also can't fire the query again, probably because of the JS error.

Screenshots:
http://take.ms/smKc9
http://take.ms/3MMbo

Problem with .local endpoints

Just flagging that I can't get the extension to work with .local domains:

Screenshot 2019-10-17 12 04 58

The recurrent error seems to be:

chromeiql.js:61661 
Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' blob: filesystem: chrome-extension-resource:".

Syntax error

How can the following syntax error be resolved:

SyntaxError: Unexpected token < in JSON at position 0
at chrome-extension://fkkiamalmpiidkljmicmjfbieiclmeij/dist/chromeiql.js:60748:23

Relaunching extension triggers duplicate request to endpoint.

When the extension is re-opened two request are sent to the endpoint on-load.

This is likely due to initialization of GraphiQL fetcher property.

<GraphiQL...
fetcher = {graphQLFetcher(endpoint)}

Attempt to fetch only when currentEndpoint is set would avoid this.

<GraphiQL...
fetcher = {...this.state.currentEndpoint ? graphQLFetcher(endpoint) : function(){}}

Firefox version a.k.a FoxyQL :D ?

Hello,

I've been playing with ChromeiQL and it's awesome. We used to include graphiql as part of our app and now we can avoid doing that.

  1. Is it possible to publish this for Firefox as well?
    The new versions of Firefox use the same extension format as Chrome (AFAIK).

  2. Are there any plans to publish this as Firefox?

Thanks,

Don't execute mutations automatically

Steps

  1. Open ChromeiQL
  2. Type and execute a mutation
  3. Close ChromeiQL
  4. Open ChromeiQL
  5. Type a new URL and click "set endpoint"

Result

The mutation is executed after both steps 4 and 5. This is potentially destructive. Lots of time might have passed between steps 3 and 4 and I might not even remember that I left a mutation query lying around. Even if I do remember I don't know of a way to open ChromeiQL without executing the existing query. If the URL I typed in step 5 was a production URL this could be catastrophic.

Notes

It's a bad practice to leave mutations lying around in the query window, but when I'm developing a mutation API it is a very easy mistake to make.

Version 1.0 fails to run introspection query

When trying to run ChromiQL against local GQL server, getting the following error in UI:

{
  "errors": [
    {
      "message": "Cannot query field \"locations\" on type \"__Directive\"."
    }
  ],
  "data": null
}

Although it was working fine with 0.1 version.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.