All Downloads are FREE. Search and download functionalities are using the official Maven repository.

configuration.basic.mongo.modern.modern.json Maven / Gradle / Ivy

There is a newer version: 0.2.1
Show newest version
{
  "class": "org.unipop.rest.RestSourceProvider",
  "baseUrl": "http://localhost:8080/",
  "add":{
    "method": "PUT",
    "url": "{{resource}}/{{_id}}",
    "template": "{ {{#prop}}\"{{key}}\":\"{{value}}\"{{^-last}}, {{/-last}}{{/prop}} }",
  },
  "search":{
    "method": "GET",
    "field": "filter",
    "url": "{{resource}}",
    "template": "resources/mongo/filter.mustache"
  },
  "valuesToString" : true,
  "resultPath": "_embedded",
  "opTranslator": {
    "eq": "$eq",
    "within": "$in"
  },
  "vertices": [
    {
      "resource": "db/vertexModern",
      "id": "@_id",
      "label": "@label",
      "properties": {
        "name": "@name",
        "age": "@age",
        "lang": "@lang"
      },
      "dynamicProperties": false
    }
  ],
  "edges": [
    {
      "resource": "db/edgeModern",
      "id": "@_id",
      "label": "@label",
      "properties": {
        "weight": "@weight"
      },
      "dynamicProperties": false,
      "outVertex":{
        "ref": true,
        "id": "@outid",
        "label": "@outlabel"
      },
      "inVertex":{
        "ref": true,
        "id": "@inid",
        "label": "@inlabel"
      }
    }
  ]
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy