/** * Factory method for creating a Field instance representing {@link Type#FRAGMENT}. * * @param responseName alias for the result of a field * @param fieldName name of the field in the GraphQL operation * @param typeConditions conditional GraphQL types * @return Field instance representing {@link Type#FRAGMENT} */ public static ResponseField forFragment(String responseName, String fieldName, List<String> typeConditions) { List<Condition> conditions = new ArrayList<>(typeConditions.size()); for (String typeCondition : typeConditions) { conditions.add(Condition.typeCondition(typeCondition)); } return new ResponseField(Type.FRAGMENT, responseName, fieldName, Collections.<String, Object>emptyMap(), false, conditions); }
/** * Factory method for creating a Field instance representing {@link Type#FRAGMENT}. * * @param responseName alias for the result of a field * @param fieldName name of the field in the GraphQL operation * @param typeConditions conditional GraphQL types * @return Field instance representing {@link Type#FRAGMENT} */ public static ResponseField forFragment(String responseName, String fieldName, List<String> typeConditions) { List<Condition> conditions = new ArrayList<>(typeConditions.size()); for (String typeCondition : typeConditions) { conditions.add(Condition.typeCondition(typeCondition)); } return new ResponseField(Type.FRAGMENT, responseName, fieldName, Collections.<String, Object>emptyMap(), false, conditions); }
/** * Factory method for creating a Field instance representing {@link Type#INLINE_FRAGMENT}. * * @param responseName alias for the result of a field * @param fieldName name of the field in the GraphQL operation * @param typeConditions conditional GraphQL types * @return Field instance representing {@link Type#INLINE_FRAGMENT} */ public static ResponseField forInlineFragment(String responseName, String fieldName, List<String> typeConditions) { List<Condition> conditions = new ArrayList<>(typeConditions.size()); for (String typeCondition : typeConditions) { conditions.add(Condition.typeCondition(typeCondition)); } return new ResponseField(Type.INLINE_FRAGMENT, responseName, fieldName, Collections.<String, Object>emptyMap(), false, conditions); }
/** * Factory method for creating a Field instance representing {@link Type#INLINE_FRAGMENT}. * * @param responseName alias for the result of a field * @param fieldName name of the field in the GraphQL operation * @param typeConditions conditional GraphQL types * @return Field instance representing {@link Type#INLINE_FRAGMENT} */ public static ResponseField forInlineFragment(String responseName, String fieldName, List<String> typeConditions) { List<Condition> conditions = new ArrayList<>(typeConditions.size()); for (String typeCondition : typeConditions) { conditions.add(Condition.typeCondition(typeCondition)); } return new ResponseField(Type.INLINE_FRAGMENT, responseName, fieldName, Collections.<String, Object>emptyMap(), false, conditions); }
/** * Factory method for creating a Field instance representing {@link Type#FRAGMENT}. * * @param responseName alias for the result of a field * @param fieldName name of the field in the GraphQL operation * @param typeConditions conditional GraphQL types * @return Field instance representing {@link Type#FRAGMENT} */ public static ResponseField forFragment(String responseName, String fieldName, List<String> typeConditions) { List<Condition> conditions = new ArrayList<>(typeConditions.size()); for (String typeCondition : typeConditions) { conditions.add(Condition.typeCondition(typeCondition)); } return new ResponseField(Type.FRAGMENT, responseName, fieldName, Collections.<String, Object>emptyMap(), false, conditions); }
/** * Factory method for creating a Field instance representing {@link Type#INLINE_FRAGMENT}. * * @param responseName alias for the result of a field * @param fieldName name of the field in the GraphQL operation * @param typeConditions conditional GraphQL types * @return Field instance representing {@link Type#INLINE_FRAGMENT} */ public static ResponseField forInlineFragment(String responseName, String fieldName, List<String> typeConditions) { List<Condition> conditions = new ArrayList<>(typeConditions.size()); for (String typeCondition : typeConditions) { conditions.add(Condition.typeCondition(typeCondition)); } return new ResponseField(Type.INLINE_FRAGMENT, responseName, fieldName, Collections.<String, Object>emptyMap(), false, conditions); }