MCPcopy Create free account
hub / github.com/CloudBoost/cloudboost / _isBasicDataType

Function _isBasicDataType

services/cloudObjects.js:755–782  ·  view source on GitHub ↗
(dataType)

Source from the content-addressed store, hash-verified

753}
754
755function _isBasicDataType(dataType) {
756 try {
757 const types = [
758 'Object',
759 'ACL',
760 'DateTime',
761 'Boolean',
762 'EncryptedText',
763 'URL',
764 'Email',
765 'Text',
766 'File',
767 'Number',
768 'GeoPoint',
769 ];
770
771 if (types.indexOf(dataType) > -1) {
772 return true;
773 }
774
775 return false;
776 } catch (err) {
777 winston.log('error', {
778 error: String(err),
779 stack: new Error().stack,
780 });
781 }
782}
783
784function _generateId(document, reqType) {
785 try {

Callers 1

_isSchemaValidFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected