BAEL-1027: Introduction to GraphQL - initial commit (#2515)

* spring beans DI examples

* fix-1: shortening examples

* List of Rules Engines in Java

* BAEL-812: Openl-Tablets example added

* BAEL-812: artifacts names changed

* BAEL-812: moving rule-engines examples to rule-engines folder

* BAEL-812: removing evaluation article files

* BAEL-812: folder renamed

* BAEL-812: folder renamed

* BAEL-812: pom.xml - parent added

* BAEL-1027: Introduction to GraphQL - initial commit
This commit is contained in:
felipeazv
2017-08-28 22:58:08 +02:00
committed by maibin
parent 904a740643
commit 8da9bee6aa
14 changed files with 356 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
{
"query": "mutation($name: String! $email: String! $age: String! ){ createUser ( name: $name email: $email age: $age) { id name email age } }",
"parameters": {
"name": "John",
"email": "john@email.com",
"age": 34
}
}

View File

@@ -0,0 +1,6 @@
{
"query": "mutation($name: String! ){ deleteUser ( id: $id) { id name email age} }",
"parameters": {
"id": 2
}
}

View File

@@ -0,0 +1,4 @@
{
"query": "{ listUsers{ id name email age}}",
"parameters": {}
}

View File

@@ -0,0 +1,6 @@
{
"query": "query($id: String!){ retrieveUser ( id: $id) { id name email} }",
"parameters": {
"id": 1
}
}

View File

@@ -0,0 +1,6 @@
{
"query": "query($id: String!){ searchName ( id: $id) { id name email} }",
"parameters": {
"id": 2
}
}

View File

@@ -0,0 +1,9 @@
{
"query": "mutation($id: String! $name: String! $email: String! $age: String! ){ updateUser ( id: $id name: $name email: $email age: $age) { id name email age} }",
"parameters": {
"id": 1,
"name":"John updated",
"email": "johnupdate@email.com",
"age": 50
}
}