How to use the grakn-client.dataType.BOOLEAN function in grakn-client

To help you get started, we’ve selected a few grakn-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github graknlabs / workbase / src / renderer / components / SchemaDesign / SchemaHandler.js View on Github external
function toGraknDatatype(dataTypeParam) {
  switch (dataTypeParam) {
    case 'string': return dataType.STRING;
    case 'date': return dataType.DATE;
    case 'boolean': return dataType.BOOLEAN;
    case 'long': return dataType.LONG;
    case 'double': return dataType.DOUBLE;
    default: throw new Error(`Datatype not recognised. Received [${dataTypeParam}]`);
  }
}

grakn-client

Grakn Client for Node.js

Apache-2.0
Latest version published 3 years ago

Package Health Score

39 / 100
Full package analysis