case class QuerySpec(select: Seq[String] = Nil, filter: Option[String] = None, orderBy: Seq[String] = Nil, includeCount: Boolean = false, expand: Seq[Expand] = Nil, top: Option[Int] = None, skip: Option[Int] = None, fetchXml: Option[String] = None, savedQuery: Option[String] = None, userQuery: Option[String] = None, cast: Option[String] = None, properties: Seq[NavProperty] = Nil) extends QueryParts with Product with Serializable
Very crude query spec. This still requires knowledge of the REST URL format. Can expand multiple so Option[Expand] should be Seq[Expand]. QuerySpec contains everything you need for generating a URL except! the first navigation property. "cast" applies to that first navigation property when you render it.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- QuerySpec
- Serializable
- Serializable
- Product
- Equals
- QueryParts
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new QuerySpec(select: Seq[String] = Nil, filter: Option[String] = None, orderBy: Seq[String] = Nil, includeCount: Boolean = false, expand: Seq[Expand] = Nil, top: Option[Int] = None, skip: Option[Int] = None, fetchXml: Option[String] = None, savedQuery: Option[String] = None, userQuery: Option[String] = None, cast: Option[String] = None, properties: Seq[NavProperty] = Nil)
Value Members
- val cast: Option[String]
- val expand: Seq[Expand]
- val fetchXml: Option[String]
-
val
filter: Option[String]
- Definition Classes
- QuerySpec → QueryParts
- val includeCount: Boolean
-
val
orderBy: Seq[String]
- Definition Classes
- QuerySpec → QueryParts
- val properties: Seq[NavProperty]
- val savedQuery: Option[String]
-
val
select: Seq[String]
- Definition Classes
- QuerySpec → QueryParts
- val skip: Option[Int]
-
val
top: Option[Int]
- Definition Classes
- QuerySpec → QueryParts
- val userQuery: Option[String]
-
def
withExpand(e: Expand): QuerySpec
Add an Expand.
- def withNav(p: NavProperty): QuerySpec
- def withOrderBy(by: String): QuerySpec