Skip to content
On this page

Empower Your Test Results with AI-Powered Insights ->

withGraphQLQuery

Represents GraphQL query.

Syntax

js
withGraphQLQuery(query)

Usage

โœ… Correct Usage

js
await spec()
  .post('/api/users')
  .withGraphQLQuery(`
    {
      hero {
        name
      }
    }
  `)
  .expectStatus(201);

Arguments

> query (string)

GraphQL query.

Released under the MIT License.