From 3cd4555d3b0f4c032270f959b8a325024c8f397d Mon Sep 17 00:00:00 2001 From: Douwe <d.geurtjens@students.uu.nl> Date: Fri, 12 Nov 2021 14:59:19 +0100 Subject: [PATCH] test with constraints (magic geert query) --- realtest.json | 43 ++++++++++++++++++++++++++++++++++++------- 1 file changed, 36 insertions(+), 7 deletions(-) diff --git a/realtest.json b/realtest.json index c007bf0..ed118e8 100644 --- a/realtest.json +++ b/realtest.json @@ -1,15 +1,31 @@ { "return": { "entities": [ - 0 + 0, + 1, + 2, + 3, + 4 ], - "relations": [] + "relations": [ + 0, + 1, + 2, + 3 + ] }, "entities": [ { "name": "parliament", "ID": 0, - "constraints": [] + "constraints": [ + { + "attribute": "name", + "value": "Geert", + "dataType": "text", + "matchType": "like" + } + ] }, { "name": "commission", @@ -24,13 +40,26 @@ { "name": "parties", "ID": 3, - "constraints": [] - } - , + "constraints": [ + { + "attribute": "seats", + "value": "10", + "dataType": "number", + "matchType": "LT" + } + ] + }, { "name": "resolutions", "ID": 4, - "constraints": [] + "constraints": [ + { + "attribute": "date", + "value": "mei", + "dataType": "text", + "matchType": "like" + } + ] } ], "groupBys": [], -- GitLab