beanbagdb 0.6.3 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beanbagdb",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "A JS library to introduce a schema layer to a No-SQL local database",
5
5
  "main": "src/index.js",
6
6
  "module": "src/index.js",
package/src/index.js CHANGED
@@ -836,7 +836,7 @@ async create_edge(input){
836
836
  let edges_constraint
837
837
 
838
838
  try {
839
- let d = await this.read({schema:"setting_edge_constraint",data:{name:edge_name}})
839
+ let d = await this.read({schema:"system_edge_constraint",data:{name:edge_name}})
840
840
  edges_constraint = d["doc"]["data"]
841
841
  let errors = []
842
842
  let node1id = n1.doc._id
@@ -218,13 +218,13 @@ export const default_app = {
218
218
  title: "Edge constraint",
219
219
  system_generated: true,
220
220
  active: true,
221
- version: 0.52,
221
+ version: 0.60,
222
222
  description:
223
223
  "To define edge constraints for simple directed graph of records.",
224
224
  schema: {
225
225
  type: "object",
226
226
  additionalProperties: true,
227
- required: ["node1", "node2", "edge_type"],
227
+ required: ["node1", "node2", "name"],
228
228
  properties: {
229
229
  node1: {
230
230
  type: "string",