graphql

Tests query, mutation, and subscription via Playwright's request API.

Content Preview
# GraphQL API Template

Tests query, mutation, and subscription via Playwright's request API.

## Prerequisites
- Valid auth token: `{{apiToken}}`
- GraphQL endpoint: `{{graphqlEndpoint}}`
- WebSocket endpoint for subscriptions: `{{graphqlWsEndpoint}}`

---

## TypeScript

```typescript
import { test, expect } from '@playwright/test';

const GQL_URL = '{{graphqlEndpoint}}';
const headers = {
  'Authorization': `Bearer {{apiToken}}`,
  'Content-Type': 'application/json',
};

async function gql(re
How to Use

Recommended: Install to project (local)

mkdir -p .claude/skills
curl -o .claude/skills/graphql.md \
  https://raw.githubusercontent.com/alirezarezvani/claude-skills/main/engineering-team/playwright-pro/templates/api/graphql.md

Skill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.

Alternative: Clone full repo

git clone https://github.com/alirezarezvani/claude-skills

Then reference at engineering-team/playwright-pro/templates/api/graphql.md

Related Skills