Git Product home page Git Product logo

Comments (6)

IvanGoncharov avatar IvanGoncharov commented on May 11, 2024

@peteruithoven Thanks for reporting 👍
Looking into it right now 🔎 🐞

from graphql-faker.

IvanGoncharov avatar IvanGoncharov commented on May 11, 2024

@peteruithoven I just published 1.7.4 which cleanups Yargs code.

graphql-faker --extend http://localhost:8091/graphql --forward-headers Authorition ./temp.faker.graphql

Should be:

graphql-faker --extend http://localhost:8091/graphql --forward-headers Authorition -- ./temp.faker.graphql

Note: -- after --forward-headers Authorition it's required since forward-headers accepts space separated list of header names so without -- Yargs thinks that ./temp.faker.graphql is another header.

from graphql-faker.

peteruithoven avatar peteruithoven commented on May 11, 2024

Thanks for looking into this so quickly! This totally fixes my npm script challange.
We can now simply add a script like:

  "scripts": {
    "start-faker": "graphql-faker --extend http://localhost:8091/graphql --forward-headers Authorization --"
  }

And call it with something like: npm run start-faker -- faker.graphql

from graphql-faker.

peteruithoven avatar peteruithoven commented on May 11, 2024

I though pointing to the relevant Yargs docs would be a bit to technical?

from graphql-faker.

IvanGoncharov avatar IvanGoncharov commented on May 11, 2024

@peteruithoven If you switch places --extend and --forward-headers you can omit -- both in package.json and npm call.

from graphql-faker.

peteruithoven avatar peteruithoven commented on May 11, 2024

Good point. I'll try including that in #50

from graphql-faker.

Related Issues (20)

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.