def create(definition, options = {})
      custom_params = options[:dc] ? use_named_parameter('dc', options[:dc]) : nil
      @raw = send_post_request(@conn, ['/v1/query'], options, definition, custom_params)
      parse_body
    rescue Faraday::ClientError
      raise Diplomat::QueryAlreadyExists
    end
def create(definition, options = {})
      custom_params = options[:dc] ? use_named_parameter('dc', options[:dc]) : nil
      @raw = send_post_request(@conn, ['/v1/query'], options, definition, custom_params)
      parse_body
    rescue Faraday::ClientError
      raise Diplomat::QueryAlreadyExists
    end
Create a prepared query or prepared query template
 @param definition [Hash] Hash containing definition of prepared query
 @param options [Hash] :dc Consul datacenter to query
 @return [String] the ID of the prepared query created