GraphQL

class · namespace z3n7 · source Traffic/GraphQL.cs

public class GraphQL

Collects the GraphQL operations seen in a browser instance's traffic.

Constructors

GraphQL

public GraphQL(IZennoPosterProjectModel project, Instance instance, Logger log = null)

source

Turns on traffic monitoring for the instance.

Parameter Description
log Logger for step-by-step progress; null logs nothing.

Methods

GetGraphQLStructure

public string GetGraphQLStructure(string urlFilter)

source

Builds indented JSON { totalOperations, operations: [...] } from the requests whose URL contains urlFilter. An operation is identified by its normalised query text, else by operationName + persisted-query hash, else by operationName; each appears once. Requests without a JSON body or without any of these are skipped. Each item has operationType, operationName, url, statusCode, isPersistedQuery (with queryHash), requestBody and responseBody.

Parameter Description
urlFilter Text the request URL must contain.