Giter Club home page Giter Club logo

Comments (6)

estrada9166 avatar estrada9166 commented on June 2, 2024 1

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.

estrada9166 avatar estrada9166 commented on June 2, 2024 1

@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.

ivan-marquez avatar ivan-marquez commented on June 2, 2024 1

Awesome! thanks @estrada9166, I'll give it a try ASAP.

from easygraphql-load-tester.

ivan-marquez avatar ivan-marquez commented on June 2, 2024 1

@estrada9166 I tested it and it's working with mutations. Thank you for all your help!

from easygraphql-load-tester.

estrada9166 avatar estrada9166 commented on June 2, 2024

@ivan-marquez That's awesome!!

I'll close this issue!

from easygraphql-load-tester.

raheelriax avatar raheelriax commented on June 2, 2024

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)

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.