96jd-odata-query-utils
v18.0.4
Published
Utility for odata query
Downloads
106
Maintainers
Readme
96jd-odata-query-utils
Installation
NPM
npm install 96jd-odata-query-utils
YARN
yarn add 96jd-odata-query-utils
PNPM
pnpm add 96jd-odata-query-utils
BUN
bun add 96jd-odata-query-utils
Getting started
import { buildODataQueryUrl, ODataQuery } from "96jd-odata-query-utils";
const oDataQuery: 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(buildODataQueryUrl(oDataQuery));