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

Add ability for format GraphQL queries and mutations to preserve line breaks and indentation for better readability. #126

Open
jpazBuild opened this issue Jul 25, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@jpazBuild
Copy link

jpazBuild commented Jul 25, 2023

Evidence:
image

test in cypress 12.17.2

describe('template spec', () => {
  it('passes', () => {
    cy.visit('https://example.cypress.io')
    cy.api({
      method:'POST',
      url:'https://beta.pokeapi.co/graphql/v1beta',
      body:{
        query:`query MyQuery {
          pokemon_v2_ability(distinct_on: generation_id) {
            id
          }
        }`
      }
      

    }

    )
  })
})

dependencies

  "devDependencies": {
    "cypress": "^12.17.2"
  },
  "dependencies": {
    "cypress-plugin-api": "^2.11.1"
  }
@filiphric
Copy link
Owner

I’m not sure I will be adding graphql ability anytime soon. it would require a whole lot of other work and probably a rewrite of most of how this plugin works. I’ll think about this, but for transparency I’d like to state this.

@filiphric filiphric added the enhancement New feature or request label Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants