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:
8
graphql/graphql-java/payload-examples/createUser.json
Normal file
8
graphql/graphql-java/payload-examples/createUser.json
Normal 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
|
||||
}
|
||||
}
|
||||
6
graphql/graphql-java/payload-examples/deleteUser.json
Normal file
6
graphql/graphql-java/payload-examples/deleteUser.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"query": "mutation($name: String! ){ deleteUser ( id: $id) { id name email age} }",
|
||||
"parameters": {
|
||||
"id": 2
|
||||
}
|
||||
}
|
||||
4
graphql/graphql-java/payload-examples/listUsers.json
Normal file
4
graphql/graphql-java/payload-examples/listUsers.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"query": "{ listUsers{ id name email age}}",
|
||||
"parameters": {}
|
||||
}
|
||||
6
graphql/graphql-java/payload-examples/retrieveUser.json
Normal file
6
graphql/graphql-java/payload-examples/retrieveUser.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"query": "query($id: String!){ retrieveUser ( id: $id) { id name email} }",
|
||||
"parameters": {
|
||||
"id": 1
|
||||
}
|
||||
}
|
||||
6
graphql/graphql-java/payload-examples/searchName.json
Normal file
6
graphql/graphql-java/payload-examples/searchName.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"query": "query($id: String!){ searchName ( id: $id) { id name email} }",
|
||||
"parameters": {
|
||||
"id": 2
|
||||
}
|
||||
}
|
||||
9
graphql/graphql-java/payload-examples/updateUser.json
Normal file
9
graphql/graphql-java/payload-examples/updateUser.json
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user