-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1735 from DimuthuMadushan/server-side-cache
Introduce GraphQL Server-side Caching
- Loading branch information
Showing
168 changed files
with
3,837 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[package] | ||
org = "ballerina" | ||
name = "graphql_tests" | ||
version = "1.10.1" | ||
version = "1.11.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
ballerina-tests/tests/resources/documents/server_cache.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
query A { | ||
greet | ||
name(id:1) | ||
} | ||
|
||
mutation B { | ||
updateName(name: "John", enableEvict: false) | ||
} |
12 changes: 12 additions & 0 deletions
12
ballerina-tests/tests/resources/documents/server_cache_eviction.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
query A { | ||
greet | ||
name(id:1) | ||
} | ||
|
||
mutation B { | ||
updateName(name: "John", enableEvict: true) | ||
} | ||
|
||
mutation C { | ||
updateName(name: "Walter White", enableEvict: false) | ||
} |
13 changes: 13 additions & 0 deletions
13
ballerina-tests/tests/resources/documents/server_cache_eviction_with_arrays.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
query A { | ||
getFriendServices { | ||
name | ||
age | ||
} | ||
} | ||
|
||
mutation B { | ||
updateFriend(name: "Tyler", age: 28, isMarried: true, enableEvict: true) { | ||
name | ||
age | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
ballerina-tests/tests/resources/documents/server_cache_eviction_with_dataloader.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
query A { | ||
authors(ids: [1, 2, 3]) { | ||
name | ||
books { | ||
id | ||
title | ||
} | ||
} | ||
} | ||
|
||
mutation B { | ||
sabthar: updateAuthorName(id: 1, name: "Sabthar", enableEvict: true) { | ||
name | ||
books { | ||
id | ||
title | ||
} | ||
} | ||
mahroof: updateAuthorName(id: 2, name: "Mahroof") { | ||
name | ||
books { | ||
id | ||
title | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...tests/tests/resources/documents/server_cache_eviction_with_dataloader_operational.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
query A { | ||
authors(ids: [1, 2, 3]) { | ||
name | ||
books { | ||
id | ||
title | ||
} | ||
} | ||
} | ||
|
||
mutation B { | ||
harari: updateAuthorName(id: 1, name: "Yual Noah Harari", enableEvict: true) { | ||
name | ||
books { | ||
id | ||
title | ||
} | ||
} | ||
manson: updateAuthorName(id: 2, name: "Mark Manson") { | ||
name | ||
books { | ||
id | ||
title | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
ballerina-tests/tests/resources/documents/server_cache_eviction_with_interceptors.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
query A { | ||
enemy | ||
} | ||
|
||
mutation B { | ||
updateEnemy(name: "Snape", enableEvict: true) | ||
} |
10 changes: 10 additions & 0 deletions
10
ballerina-tests/tests/resources/documents/server_cache_eviction_with_list_inputs.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
query A ($names:[String!]!){ | ||
isAllMarried(names: $names) | ||
} | ||
|
||
mutation B { | ||
updateEnemy(enemy: {name: "Enemy3", age: 44}, enableEvict: true) { | ||
name | ||
isMarried | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
ballerina-tests/tests/resources/documents/server_cache_eviction_with_nullable_inputs.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
query A { | ||
enemies(isMarried: null) { | ||
name | ||
isMarried | ||
} | ||
} | ||
|
||
mutation B { | ||
removeEnemy(name: "Enemy2", enableEvict: false) { | ||
name | ||
isMarried | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
ballerina-tests/tests/resources/documents/server_cache_eviction_with_service_obj.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
query A { | ||
getFriendService(name: "Jesse Pinkman") { | ||
name | ||
age | ||
} | ||
} | ||
|
||
mutation B { | ||
updateFriend(name: "Jesse Pinkman", age: 30, isMarried: false, enableEvict: true) { | ||
name | ||
age | ||
} | ||
} |
Oops, something went wrong.