Skip to content

Commit 2aa5c58

Browse files
committed
test: remove support for anonymous operations in regression tests
The two ways introduce unnecessary complexity. We also will add a feature to output AQL strings for each operation, which requires operation names. Also, some of the anonymous operations were better split into multiple named operations.
1 parent 0384bfe commit 2aa5c58

File tree

57 files changed

+12424
-12123
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+12424
-12123
lines changed

spec/regression/access-groups/tests/accounting.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
query allFiles {
22
allFiles(orderBy: name_ASC) {
33
name
44
}
Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
2-
"data": {
3-
"allFiles": [
4-
{
5-
"name": "accounting"
6-
},
7-
{
8-
"name": "public"
9-
}
10-
]
2+
"allFiles": {
3+
"data": {
4+
"allFiles": [
5+
{
6+
"name": "accounting"
7+
},
8+
{
9+
"name": "public"
10+
}
11+
]
12+
}
1113
}
12-
}
14+
}

spec/regression/access-restrictions/tests/accounting.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
query allFiles {
22
allFiles(orderBy: name_ASC) {
33
name
44
}
Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
2-
"data": {
3-
"allFiles": [
4-
{
5-
"name": "accounting"
6-
},
7-
{
8-
"name": "public"
9-
}
10-
]
2+
"allFiles": {
3+
"data": {
4+
"allFiles": [
5+
{
6+
"name": "accounting"
7+
},
8+
{
9+
"name": "public"
10+
}
11+
]
12+
}
1113
}
12-
}
14+
}

spec/regression/logistics/tests/aliases.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
query aliases {
22
aDelivery: Delivery(id: "@{ids/Delivery/1}") {
33
nr: deliveryNumber
44
oneItem: items(filter: { itemNumber: "1001" }) {
Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
{
2-
"data": {
3-
"aDelivery": {
4-
"nr": "1000173",
5-
"oneItem": [
6-
{
7-
"itemNumber": "1001"
8-
}
9-
],
10-
"items": [
11-
{
12-
"itemNumber": "1001"
13-
},
14-
{
15-
"itemNumber": "1002"
16-
}
17-
]
18-
},
19-
"anotherDelivery": {
20-
"nr": "1000521"
2+
"aliases": {
3+
"data": {
4+
"aDelivery": {
5+
"nr": "1000173",
6+
"oneItem": [
7+
{
8+
"itemNumber": "1001"
9+
}
10+
],
11+
"items": [
12+
{
13+
"itemNumber": "1001"
14+
},
15+
{
16+
"itemNumber": "1002"
17+
}
18+
]
19+
},
20+
"anotherDelivery": {
21+
"nr": "1000521"
22+
}
2123
}
2224
}
23-
}
25+
}

spec/regression/logistics/tests/count.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
query {
1+
query count {
22
_allDeliveriesMeta {
33
count
44
}
Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
2-
"data": {
3-
"_allDeliveriesMeta": {
4-
"count": 3
5-
},
6-
"Delivery": {
7-
"_itemsMeta": {
8-
"count": 2
2+
"count": {
3+
"data": {
4+
"_allDeliveriesMeta": {
5+
"count": 3
6+
},
7+
"Delivery": {
8+
"_itemsMeta": {
9+
"count": 2
10+
}
911
}
1012
}
1113
}
12-
}
14+
}

spec/regression/logistics/tests/deprecations.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
query deprecations {
22
Delivery: __type(name: "Delivery") {
33
name
44
fields(includeDeprecated: true) {

0 commit comments

Comments
 (0)