@Internal public class GraphQLUtils extends Object
Constructor and Description |
---|
GraphQLUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
buildGraphQLFieldArgumentsString(Map<String,Object> arguments)
Get a string with graph-ql field arguments, suitable for use in a graph-ql query string.
|
static String |
buildQuery(String queryFieldName,
String queryFragment,
Map<String,Object> arguments)
Build a GraphQL query string from a field name, query arguments and query body fragment.
|
static String |
buildRequestString(String query)
Build a request string for a graph-ql REST API request.
|
static String |
buildRequestString(String queryFieldName,
String queryFragment,
Map<String,Object> arguments)
Build a request string for a graph-ql REST API request.
|
public static String buildRequestString(String queryFieldName, String queryFragment, Map<String,Object> arguments)
queryFieldName
- The name of the query field in the graphqueryFragment
- The graphql query fragment that within the query field namearguments
- The arguments to the query fieldpublic static String buildQuery(String queryFieldName, String queryFragment, Map<String,Object> arguments)
queryFieldName
- The name of the query field in the graphqueryFragment
- The graphql query fragment that resides within the query field namearguments
- The arguments to the query fieldpublic static String buildRequestString(String query)
query
- The GraphQL queryCopyright © 2003–2018 Atlassian. All rights reserved.