Comments (6)
@peteruithoven Thanks for reporting 👍
Looking into it right now 🔎 🐞
from graphql-faker.
@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.
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.
I though pointing to the relevant Yargs docs would be a bit to technical?
from graphql-faker.
@peteruithoven If you switch places --extend
and --forward-headers
you can omit --
both in package.json
and npm call.
from graphql-faker.
Good point. I'll try including that in #50
from graphql-faker.
Related Issues (20)
- @fake directive doesn't handle datatype values like boolean or array
- CLI command to generate a valid graphQl schema from the faker one HOT 4
- Fix deprecation Warning: faker.random
- faking graphql api using gaphql faker does not seem to query fields by id
- How to use a custom endpoint for fake service
- Faking file uploads/downloads
- Request for ARM docker image
- Allow to override existing schema with GraphQL-faker
- How to fake simple number with a static prefix?
- Interfaces implements Interface HOT 1
- Stuck at "loading" when running graphql-faker, is there a way to see a more detailed log? HOT 1
- Randomized fragment does not trigger new request
- Can we auto-fake without having to specify the faking it in the sdl file ?
- Unknown directive "specifiedBy" HOT 1
- npm package resolution hanging forever HOT 4
- proxy and SDL
- `@deprecated` directive not supported for input field HOT 3
- Cannot instal graphql-faker HOT 9
- support for interface implementing interfaces
- Any alternatives to this package? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphql-faker.