Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should receive array of queries to test #11

Closed
estrada9166 opened this issue Dec 3, 2018 · 0 comments
Closed

Should receive array of queries to test #11

estrada9166 opened this issue Dec 3, 2018 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@estrada9166
Copy link
Member

estrada9166 commented Dec 3, 2018

This method should receive an array with the names of the queries to test! That way you can choose which queries should be tested.

Also, the received queries should be updated to be an object of properties with:

{
  queriesToTest: 
  customQueries: 
}

ThIs object is optional

Example

Schema

...
type Query {
  getFamilyInfo: FamilyInfo!
  searchUser(name: String!): User!
  getFamilyInfoByIsLocal(isLocal: Boolean!, test: [String]!, age: Int!, name: String!): FamilyInfo!
}
const queries = [
  {
    name: 'searchUser(name: "demo")',
    query: `
      {
        searchUser(name: "demo") {
          name
        }
      }
    `
  }
]

easyGraphQLLoadTester.artillery({
  queriesToTest: ['getFamilyInfo', 'searchUser'],
  customQueries: queries
})

The created queries will be only for 'getFamilyInfo', 'searchUser'

@estrada9166 estrada9166 added help wanted Extra attention is needed good first issue Good for newcomers labels Dec 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant