 		return self
 	}
 	
+	
+	// MARK: URL building
+	
 	/**
 	Returns the URL string of this query, relative to the given base URL.
 	


import Foundation

public class Query {
	
	private struct QueryFilter {
		var key: String
		var value: String
		var comparator: String
		
		var rhs: String {
			get {
				if self.comparator == "=" {
					return self.value
				} else {
					return self.comparator + self.value
				}
			}
		}
		
		init(property: String, value: String, comparator: String) {
			self.key = property
			self.value = value
			self.comparator = comparator
		}
	}
	
	var URL: NSURL
	var resourceType: String

	}
	
	/**
	Adds a filter where the given property should be smaller then the given value.
	
	:param: property    The property to filter on.
	:param: smallerThen The value to check for.
	
	:returns: The query
	*/
	public func whereProperty(property: String, smallerThen: String) -> Self {
		self.filters.append(QueryFilter(property: property, value: smallerThen, comparator: "<"))
		return self
	}
	
	/**
	Adds a filter where the given property should be greater then the given value.
	
	:param: property    The property to filter on.
	:param: greaterThen The value to check for.
	
	:returns: The query
	*/
	public func whereProperty(property: String, greaterThen: String) -> Self {
		self.filters.append(QueryFilter(property: property, value: greaterThen, comparator: ">"))
		return self
	}
	
	/**
	Adds a filter where the given relationship should point to the given resource, or the given
	resource should be present in the related resources.
	
