Class AbstractQuery<T extends AbstractQuery>

    • Constructor Detail

      • AbstractQuery

        protected AbstractQuery​(StringBuilder queryBuilder)
    • Method Detail

      • appendQuotedString

        public static void appendQuotedString​(StringBuilder query,
                                              String string)
      • startInlineFragment

        protected void startInlineFragment​(String typeName)
      • startField

        protected void startField​(String fieldName)
      • withAlias

        public T withAlias​(String aliasSuffix)
      • addCustomSimpleField

        public T addCustomSimpleField​(String fieldName)
        Adds a custom simple field to the GraphQL query. The adjective "simple" here refers to a scalar/primitive field like String, Integer, Double, Boolean, or an array of fields.
        Parameters:
        fieldName - The name of the field that will be added to the GraphQL request.
        Returns:
        The current query builder.
      • addCustomObjectField

        public T addCustomObjectField​(String fieldName,
                                      CustomFieldQueryDefinition queryDef)
        Adds a custom object field to the GraphQL query. The term "object" here refers to a GraphQL object, which means some fields of the custom object must also be defined in the query.
        Parameters:
        fieldName - The name of the field that will be added to the GraphQL request.
        queryDef - The definition of the requested sub-fields of the object.
        Returns:
        The current query builder.