'Detect query type( query, mutation, subscription) in graphql-java
Is there a way to detect the query type query , mutation or subscription , preferably without executing the query.
For example:
ExecutionInput executionInput = ExecutionInput
.newExecutionInput()
.query("subscription Test{test}")
.build();
Is it possible to detect that this is a subscription request? subscription Test{test} without executing the query?
Something like executionInput.isSubscription()
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
