You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Love the project! Looking to generate mocks for testing client state. Is there any way to render query output to a file without starting the server? It looks like graphqlHTTP is the only query api currently.
The text was updated successfully, but these errors were encountered:
Simple and flexible is good. Perhaps a query function to generate various
mocks on demand. e.g., "require('graphql-faker').query(<querytext>, vars)".
It might even be possible to use the graphql-js execute function as is.
CLI would be more complicated. Running 'node -e
"require('graphql-faker').query(<querytext>, vars)" would likely work good
enough for cli scenarios, and allows optionally substituting
fs.readFileSync to read queries from files.
Love the project! Looking to generate mocks for testing client state. Is there any way to render query output to a file without starting the server? It looks like graphqlHTTP is the only query api currently.
The text was updated successfully, but these errors were encountered: