lb_tech_handler_js
v1.2.40
Published
> **A collection of custom modules that are commonly used.**
Readme
📦 LB_TECH_HANDLER_JS
A collection of custom modules that are commonly used.
🚀 FEATURES (APPSMITH USE ONLY)
Query Types
- GraphQL – "graphql" added error handling for graphQl queries.
- REST API – "restapi" added error handling for REST API queries.
Miscellaneous
- Timestamp - "timestamp" can be used to populate the timestamps in who columns.
Validations
- Check User - "checkUser" to check if the user is logged in or not.
- Log Out - "logOut" to log out the user.
📦 Installation
Install the package using npm:
# npm
npm install lb_tech_handler_js
🔧 USAGE
Query Types
- GraphQL :-
const {techHandlerQuery} = require('lb_tech_handler_js');
const queryType = `graphQl`;
const response = techHandlerQuery(queryType, your-query-name, params);
console.log(response);- REST API :-
const {techHandlerQuery} = require('lb_tech_handler_js');
const queryType = `restapi`;
const response = techHandlerQuery(queryType, your-api-name, params, refresh-api-name);
console.log(response);Miscellaneous
- Timestamp :-
const {techHandlerMisc} = require('lb_tech_handler_js');
const misc = `timestamp`;
const response = techHandlerMisc(misc);
console.log(response);Validations
- Check User :-
const {techHandlerMisc} = require('lb_tech_handler_js');
const validation = `checkUser`;
techHandlerValidations(validation);
- Log Out :-
const {techHandlerMisc} = require('lb_tech_handler_js');
const validation = `logOut`;
techHandlerValidations(validation);
