def query_options(query, options)
      query.ancestor(options[:ancestor]) if options[:ancestor]
      query.cursor(options[:cursor]) if options[:cursor]
      query.limit(options[:limit]) if options[:limit]
      query_sort(query, options)
      query.select(*options[:select]) if options[:select]
      query.distinct_on(*options[:distinct_on]) if options[:distinct_on]
      query_property_filter(query, options)
    end
def query_options(query, options)
      query.ancestor(options[:ancestor]) if options[:ancestor]
      query.cursor(options[:cursor]) if options[:cursor]
      query.limit(options[:limit]) if options[:limit]
      query_sort(query, options)
      query.select(*options[:select]) if options[:select]
      query.distinct_on(*options[:distinct_on]) if options[:distinct_on]
      query_property_filter(query, options)
    end
**************** private ****************