src/types/basic-query.js
function BasicQuery(query) {
	assign(this, query);
	if (!this.filter) {
		this.filter = set.UNIVERSAL;
	}
	if (!this.page) {
		this.page = new RecordRange();
	}
	if (!this.sort) {
		this.sort = "id";
	}
	if (typeof this.sort === "string") {
		this.sort = new DefaultSort(this.sort);
	}
}
function BasicQuery(query) {
	assign(this, query);
	if (!this.filter) {
		this.filter = set.UNIVERSAL;
	}
	if (!this.page) {
		this.page = new RecordRange();
	}
	if (!this.sort) {
		this.sort = "id";
	}
	if (typeof this.sort === "string") {
		this.sort = new DefaultSort(this.sort);
	}
}
function BasicQuery ( query ) { assign ( this , query ) ; if ( ! this . filter ) { this . filter = set . UNIVERSAL ; } if ( ! this . page ) { this . page = new RecordRange ( ) ; } if ( ! this . sort ) { this . sort = "id" ; } if ( typeof this . sort === "string" ) { this . sort = new DefaultSort ( this . sort ) ; } }
Define the BasicQuery type
Define the BasicQuery type