-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update cache resolving logic for records
- Loading branch information
1 parent
337d332
commit 735ba14
Showing
18 changed files
with
305 additions
and
14 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
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
44 changes: 44 additions & 0 deletions
44
ballerina-tests/tests/resources/documents/server_cache_with_dynamic_responses.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,44 @@ | ||
query A { | ||
user(id:1) { | ||
id | ||
} | ||
} | ||
|
||
query B { | ||
user(id:1) { | ||
id | ||
name | ||
} | ||
} | ||
|
||
query C { | ||
user(id:1) { | ||
id | ||
name | ||
age | ||
} | ||
} | ||
|
||
mutation D { | ||
updateUser(id:1, name:"White", age:45, enableEvict:false) { | ||
id | ||
name | ||
age | ||
} | ||
} | ||
|
||
mutation E { | ||
updateUser(id:1, name:"White", age:45, enableEvict:true) { | ||
id | ||
name | ||
age | ||
} | ||
} | ||
|
||
mutation F { | ||
updateUser(id:1, name:"Walter", age:45, enableEvict:true) { | ||
id | ||
name | ||
age | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
ballerina-tests/tests/resources/expected_results/server_cache_with_dynamic_responses_1.json
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 @@ | ||
{ | ||
"data": { | ||
"user": { | ||
"id": 1 | ||
} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
ballerina-tests/tests/resources/expected_results/server_cache_with_dynamic_responses_2.json
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 @@ | ||
{ | ||
"data": { | ||
"user": { | ||
"id": 1, | ||
"name": "John" | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
ballerina-tests/tests/resources/expected_results/server_cache_with_dynamic_responses_3.json
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,9 @@ | ||
{ | ||
"data": { | ||
"user": { | ||
"id": 1, | ||
"name": "John", | ||
"age": 25 | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
ballerina-tests/tests/resources/expected_results/server_cache_with_dynamic_responses_4.json
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,9 @@ | ||
{ | ||
"data": { | ||
"updateUser": { | ||
"id": 1, | ||
"name": "White", | ||
"age": 45 | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
ballerina-tests/tests/resources/expected_results/server_cache_with_dynamic_responses_5.json
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,9 @@ | ||
{ | ||
"data": { | ||
"user": { | ||
"id": 1, | ||
"name": "White", | ||
"age": 45 | ||
} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
ballerina-tests/tests/resources/expected_results/server_cache_with_dynamic_responses_6.json
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 @@ | ||
{ | ||
"data": { | ||
"user": { | ||
"id": 1, | ||
"name": "White" | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
ballerina-tests/tests/resources/expected_results/server_cache_with_dynamic_responses_7.json
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,9 @@ | ||
{ | ||
"data": { | ||
"updateUser": { | ||
"id": 1, | ||
"name": "Walter", | ||
"age": 45 | ||
} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
ballerina-tests/tests/resources/expected_results/server_cache_with_dynamic_responses_8.json
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 @@ | ||
{ | ||
"data": { | ||
"user": { | ||
"id": 1, | ||
"name": "Walter" | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.