Comments (6)
That's awesome!! for the moment, it doesn't work with mutations because it'll create new data on your db... but for sure, it's something that I'll start working on soon!
The idea can be passing the mutations with a flag on the options, that way, it'll be safe to create the mutations and prevent creating the virtual user data...
also, if you want to create a PR with this, it'll be awesome! I can help if you want!
from easygraphql-load-tester.
@ivan-marquez There's a new version that supports mutations, what you have to do is on the options that you pass, you set a new property that is going to be withMutations: true
Example:
const testCases = easyGraphQLLoadTester.artillery({
withMutations: true
})
Also, don't forget to set the values of input on the args... Check this example
Let me know if it works for you and we can close this issue!
Thanks!
from easygraphql-load-tester.
Awesome! thanks @estrada9166, I'll give it a try ASAP.
from easygraphql-load-tester.
@estrada9166 I tested it and it's working with mutations. Thank you for all your help!
from easygraphql-load-tester.
@ivan-marquez That's awesome!!
I'll close this issue!
from easygraphql-load-tester.
I am facing this issue while using easygraphql-load-tester
with k6. I've a large schema n I only want to run One specific query and one specific mutation, but only queries are seems to be working
I am passing arguments for both in LoadTesting
constructor
const loadTester = new LoadTesting(userSchema, {
processSegments:{},
createProcessSegment: {
data: <value>,
},
});
loadTester.k6('k6.js', {
vus: 10,
iterations: 10,
duration: '10s',
queryFile: true,
withMutation: true,
selectedQueries: ['createProcessSegment,processSegments'],
out: ['json=results.json'],
});
from easygraphql-load-tester.
Related Issues (20)
- Must also check if the "userArgs[arg.name]" is required as define in schema
- Support results output for k6
- Cannot provide null values for optional arguments HOT 1
- Support multiple args for a given query HOT 2
- Framework is automatically adding arguments with value 'undefined' HOT 2
- Framework does not request all the fields in all the queries HOT 2
- lib/index.js missing in 2.0 release HOT 3
- An in-range update of @typescript-eslint/parser is breaking the build 🚨 HOT 2
- An in-range update of @typescript-eslint/eslint-plugin is breaking the build 🚨 HOT 2
- Is this compatible with ruby-graphql? HOT 1
- Old version 2.0.1 on npm HOT 1
- example error HOT 2
- Is it possible to test subscription performance?
- queryFilePath ignored for k6 settings
- Support multi queries in single file HOT 1
- Error when calling `.artillery()` in sample HOT 1
- 0 requests completed HOT 1
- query test is testing query with all possible combinations not JUST the return value I requested. HOT 2
- How to pass environment variables into k6
- Single query for all fields
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 easygraphql-load-tester.