restjet-query
v1.2.2
Published
data manager
Downloads
20
Readme
restjet-query
data manager very simple
install
npm install restjet-query --save
import
const { send, get } = require("restjet-query");
//or
import { send, get } from "restjet-query";
use
send query
import { send } from "restjet-query";
/**
* send(query);
* query is json or object
* value any
*/
send({ example: { yourObject: { your_any_data: "any_type_data" } } });
get query
import { get } from "restjet-query";
/**
* on(query)
* query is json or object
*/
get({ example: { yourObject: { your_any_data: "" } } });
/**
* return {your_any_data:"any_type_data"}
*/
compare fields
import { get } from "restjet-query";
/**
* equals is data for compare
* return true if (equals == your_any_data) else return false
*/
get({
example: {
yourObject: { your_any_data: [{ equals: "any_type_data", as: "is_data" }] },
any_other:[as:"other"]
}
});
/**
* return
* {
* is_data: true,
* any_other
* }
*/