UNPKG

startgg-helper-node

Version:

A set of functions and classes useful to communicate with the start.gg API.

32 lines (30 loc) 684 B
import { Query } from "startgg-helper"; import { processData } from "./testUtil.js"; const schema = ` query EventStandingsQuery($slug: String!) { event(slug: $slug) { id entrants (query: {perPage: 500}){ nodes { id name participants { player { id gamerTag } user { id slug } } } } } } ` let query = new Query(schema, 3); export async function testShort(client){ let result = await query.execute(client, {slug: "tournament/tls-mad-ness-25/event/1v1-ultimate"}); return processData(result, "event"); }