For the complete documentation index, see llms.txt. This page is also available as Markdown.

ExecuteQuery

GraphQl query will be executed after running this task.

Task version: 2.1.0

Required Frends version: 5.7+

Required .NET version: 8.0

Compatible Agents: Crossplatform

Task Parameters

Name
Description

Query : String

GraphQl Query

Default: - Example: query ($surname: String!) { users(surname: $surname) { id name } }

Variables : Variable[]

GraphQl variables for query

Default: - Example: [{"key" : "surname", "value" : "Doe"}]

OperationName : String

The name of the operation to execute. Required if the query contains multiple operations.

Default: - Example: GetUser

Extensions : Variable[]

Additional entries for protocol extensions. This is a map of additional metadata.

Default: - Example: [{"key" : "persistedQuery", "value" : {"version": 1, "sha256Hash": "abc123"}}]

Task Result

Name
Description

Success : Boolean

Indicates if the task completed successfully. Example: true

Data : JObject

Content of the returned response Example: foobar,foobar

Headers : Header[]

Array of response headers Example: Name: Header, Value: HeaderValue

Error : Error

Error that occurred during task execution. Example: object { string Message, object { Exception exception } AdditionalInfo }

Task Changelog

Changelog for Task Frends.GraphQl.ExecuteQuery.

[2.1.0] - 2026-04-13

Added

  • Add a new ClientCertificate connection option

[2.0.0] - 2025-11-14

Changed

  • BREAKING: Variable values now support complex types (objects, arrays) instead of only strings. Variables are properly serialized without double-serialization.

  • GET method now uses JSON serialization for variables instead of manual string construction.

  • GraphQL response errors are now properly detected. Result.Success is set to false when the response contains errors, and an exception is thrown when ThrowErrorOnFailure is enabled.

Added

  • Support for operationName field to specify which operation to execute when a query contains multiple operations.

  • Support for extensions field for protocol extensions and additional metadata.

[1.1.0] - 2025-07-31

Changed

  • Make default error message empty by default

[1.0.0] - 2025-06-03

Added

  • Initial implementation

Last updated

Was this helpful?