NPM module - izara-shared: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 54: | Line 54: | ||
# Concatenate ''vertexTag'' + "_" + ''uniqueId'' | # Concatenate ''vertexTag'' + "_" + ''uniqueId'' | ||
== neptuneGraphSharedLib.createCreatedByEdgeId == | |||
<syntaxhighlight lang="JavaScript"> | |||
/** | |||
* @param {string} vertexId | |||
* | |||
* @returns {string} createdByEdgeId | |||
*/ | |||
</syntaxhighlight> | |||
=== logic === | |||
# return ''vertexId'' + '_CreatedBy' | |||
== neptuneGraphSharedLib.getVerticesByLabel == | == neptuneGraphSharedLib.getVerticesByLabel == | ||
Line 68: | Line 82: | ||
# .. | # .. | ||
== neptuneGraphSharedLib.getVertexById == | == neptuneGraphSharedLib.getVertexById == |
Revision as of 06:04, 3 March 2021
Overview
Shared libraries
Repository
https://bitbucket.org/stb_working/izara-shared/src/master/
Helper functions for interacting with DynamoDB resources.
/**
* Creates a string set element for use with documentClient
* @param {string[]} stringSet
*
* @returns {string} String formatted as a string set for Dynamo
*/
Helper functions for Config tables.
/**
* @param {string} configTag
* @param {string} configKey
*
* @returns {Object} returns the configValue for a single config record, or null if none found
*/
Helper functions for interacting with Neptune graph databases from any service.
/**
* Creates vertexId from vertexTag and unique id
* @param {string} vertexTag - is the type of object
* @param {string} uniqueId
*
* @returns {string} vertexId
*/
- Concatenate vertexTag + "_" + uniqueId
/**
* @param {string} vertexId
*
* @returns {string} createdByEdgeId
*/
logic
- return vertexId + '_CreatedBy'
/**
* Returns all vertices that match the vertex label for the given graph
* @param {string} graphServiceName
* @param {string} vertexLabel
*
* @returns {string} vertexId
*/
- ..
/**
* Returns all vertices that match the vertex label for the given graph
* @param {string} graphServiceName
* @param {string} vertexId
*
* @returns {string} vertexId
*/
- ..