Git Product home page Git Product logo

graphql-persisted-document-loader's People

Contributors

dependabot[bot] avatar kbariotis avatar leoasis avatar sebas5384 avatar yuriymanakov 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  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  avatar  avatar

graphql-persisted-document-loader's Issues

Only one operation per file

Hi! this lib is so cool, thank you ๐Ÿ‘

This lib supports one operation by file, but the graphql-tag/loader supports multiple.

Why do we have this limitation here?

I guess it could be useful to warn users about this limitation, since I got caught by surprise.

thanks!

Using with create-react-app and integration with babel-plugin-graphql-tag. Question about hashing cost client side.

I'm using create-react-app with react-apollo.

I'm already using https://github.com/timarney/react-app-rewired with many plugins, for example this: https://github.com/gajus/babel-plugin-graphql-tag.

I was wondering how to use your package with create-react-app.

I'm also wondering if there is a way to use this package from babel-plugin-graphql-tag (I already opened an issue there: gajus/babel-plugin-graphql-tag#22).

Can I ask you how much do you think is the cost of hashing operation on client side (without using this package)?

Fix security vulnerabilities

This webpack loader depends on persistgraphql which is deprecated and has seen no update since 2018. As this also results in transitive dependencies with security vulnerabilities (e.g. yargs-parser) we should search for an alternative approach.

I am not quite sure why persistgraphql is used, as we only need to hash the output of graphql-tag/loader. To generate the hash from the query AST we could use the print method from graphql.

Adding 'doc.documentID' to EOL breaks eval

When adding beyond module.exports this breaks eval().

Note that t incorrectly is just the id ...

Incorrect:
image

... as opposed to ...

Correct:
image

... where it exports the whole object.

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.