Class GraphQlExecUtils
java.lang.Object
org.aksw.jenax.graphql.sparql.v2.exec.api.high.GraphQlExecUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisFormatPretty(GraphQlExec<?> exec) Returns true iff in the underlying preprocessed GraphQL document there exists an OperationDefinition of type Query with a@prettydirective.static voidwrite(OutputStream out, GraphQlExec<String> exec) Write out the execution result as JSON.static voidwrite(OutputStream out, GraphQlExec<String> exec, com.google.gson.Gson gson) static voidwriteCompact(OutputStream out, GraphQlExec<String> exec) static voidwritePretty(OutputStream out, GraphQlExec<String> exec)
-
Constructor Details
-
GraphQlExecUtils
public GraphQlExecUtils()
-
-
Method Details
-
isFormatPretty
Returns true iff in the underlying preprocessed GraphQL document there exists an OperationDefinition of type Query with a@prettydirective. -
write
Write out the execution result as JSON. Will use pretty formatting if the pretty directive is present on the query node.- Throws:
IOException
-
writeCompact
- Throws:
IOException
-
writePretty
- Throws:
IOException
-
write
public static void write(OutputStream out, GraphQlExec<String> exec, com.google.gson.Gson gson) throws IOException - Throws:
IOException
-