1.0.1 • Published 12 months ago

odata-query-utils v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

odata-query-utils

Installation

npm install odata-query-utils
yarn add odata-query-utils

How To Use

import { OdataQuery, getOdataUrl } from "odata-query-utils";

const query: OdataQuery = {
	apiUrl: `${location.origin}/odata/Users`,
	count: true,
	expand: "UserFollowRecipients",
	filter: "UserFollowRecipients/any(uf:uf/SenderId eq 1)",
	select: "id,about,birthday,city,coverPhoto,email,firstName,lastName",
	top: "30",
	skip: "0"
};

console.log(getOdataUrl(query));
1.0.1

12 months ago

1.0.0

12 months ago