Java Code Examples for com.apollographql.apollo.api.Operation#EMPTY_VARIABLES

The following examples show how to use com.apollographql.apollo.api.Operation#EMPTY_VARIABLES . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ApolloServerInterceptor.java    From apollo-android with MIT License 6 votes vote down vote up
static HttpUrl httpGetUrl(HttpUrl serverUrl, Operation operation,
    ScalarTypeAdapters scalarTypeAdapters, boolean writeQueryDocument,
    boolean autoPersistQueries) throws IOException {
  HttpUrl.Builder urlBuilder = serverUrl.newBuilder();
  if (!autoPersistQueries || writeQueryDocument) {
    urlBuilder.addQueryParameter("query", operation.queryDocument());
  }
  if (operation.variables() != Operation.EMPTY_VARIABLES) {
    addVariablesUrlQueryParameter(urlBuilder, operation, scalarTypeAdapters);
  }
  urlBuilder.addQueryParameter("operationName", operation.name().name());
  if (autoPersistQueries) {
    addExtensionsUrlQueryParameter(urlBuilder, operation);
  }
  return urlBuilder.build();
}
 
Example 2
Source File: TestQuery.java    From apollo-android with MIT License 4 votes vote down vote up
public TestQuery() {
  this.variables = Operation.EMPTY_VARIABLES;
}
 
Example 3
Source File: TestQuery.java    From apollo-android with MIT License 4 votes vote down vote up
public TestQuery() {
  this.variables = Operation.EMPTY_VARIABLES;
}
 
Example 4
Source File: TestQuery.java    From apollo-android with MIT License 4 votes vote down vote up
public TestQuery() {
  this.variables = Operation.EMPTY_VARIABLES;
}
 
Example 5
Source File: TestQuery.java    From apollo-android with MIT License 4 votes vote down vote up
public TestQuery() {
  this.variables = Operation.EMPTY_VARIABLES;
}
 
Example 6
Source File: TestQuery.java    From apollo-android with MIT License 4 votes vote down vote up
public TestQuery() {
  this.variables = Operation.EMPTY_VARIABLES;
}
 
Example 7
Source File: TestQuery.java    From apollo-android with MIT License 4 votes vote down vote up
public TestQuery() {
  this.variables = Operation.EMPTY_VARIABLES;
}
 
Example 8
Source File: TestQuery.java    From apollo-android with MIT License 4 votes vote down vote up
public TestQuery() {
  this.variables = Operation.EMPTY_VARIABLES;
}
 
Example 9
Source File: TestQuery.java    From apollo-android with MIT License 4 votes vote down vote up
public TestQuery() {
  this.variables = Operation.EMPTY_VARIABLES;
}
 
Example 10
Source File: TestQuery.java    From apollo-android with MIT License 4 votes vote down vote up
public TestQuery() {
  this.variables = Operation.EMPTY_VARIABLES;
}
 
Example 11
Source File: HeroDetails.java    From apollo-android with MIT License 4 votes vote down vote up
public HeroDetails() {
  this.variables = Operation.EMPTY_VARIABLES;
}
 
Example 12
Source File: TestQuery.java    From apollo-android with MIT License 4 votes vote down vote up
public TestQuery() {
  this.variables = Operation.EMPTY_VARIABLES;
}
 
Example 13
Source File: TestQuery.java    From apollo-android with MIT License 4 votes vote down vote up
public TestQuery() {
  this.variables = Operation.EMPTY_VARIABLES;
}
 
Example 14
Source File: TestQuery.java    From apollo-android with MIT License 4 votes vote down vote up
public TestQuery() {
  this.variables = Operation.EMPTY_VARIABLES;
}
 
Example 15
Source File: HeroDetailsQuery.java    From apollo-android with MIT License 4 votes vote down vote up
public HeroDetailsQuery() {
  this.variables = Operation.EMPTY_VARIABLES;
}
 
Example 16
Source File: TestQuery.java    From apollo-android with MIT License 4 votes vote down vote up
public TestQuery() {
  this.variables = Operation.EMPTY_VARIABLES;
}
 
Example 17
Source File: TestQuery.java    From apollo-android with MIT License 4 votes vote down vote up
public TestQuery() {
  this.variables = Operation.EMPTY_VARIABLES;
}
 
Example 18
Source File: TestQuery.java    From apollo-android with MIT License 4 votes vote down vote up
public TestQuery() {
  this.variables = Operation.EMPTY_VARIABLES;
}
 
Example 19
Source File: TestQuery.java    From apollo-android with MIT License 4 votes vote down vote up
public TestQuery() {
  this.variables = Operation.EMPTY_VARIABLES;
}
 
Example 20
Source File: TestQuery.java    From apollo-android with MIT License 4 votes vote down vote up
public TestQuery() {
  this.variables = Operation.EMPTY_VARIABLES;
}