diff --git a/apollo-router/tests/integration/snapshots/integration_tests__integration__redis__test__entity_cache_authorization-2.snap b/apollo-router/tests/integration/snapshots/integration_tests__integration__redis__test__entity_cache_authorization-2.snap index 4a042094c7..c4315a3062 100644 --- a/apollo-router/tests/integration/snapshots/integration_tests__integration__redis__test__entity_cache_authorization-2.snap +++ b/apollo-router/tests/integration/snapshots/integration_tests__integration__redis__test__entity_cache_authorization-2.snap @@ -3,6 +3,17 @@ source: apollo-router/tests/integration/redis.rs expression: response --- { + "errors": [ + { + "message": "Unauthorized field or type", + "path": [ + "me" + ], + "extensions": { + "code": "UNAUTHORIZED_FIELD_OR_TYPE" + } + } + ], "data": { "me": null, "topProducts": [ @@ -35,16 +46,5 @@ expression: response ] } ] - }, - "errors": [ - { - "message": "Unauthorized field or type", - "path": [ - "me" - ], - "extensions": { - "code": "UNAUTHORIZED_FIELD_OR_TYPE" - } - } - ] + } } diff --git a/apollo-router/tests/integration/snapshots/integration_tests__integration__redis__test__entity_cache_authorization-3.snap b/apollo-router/tests/integration/snapshots/integration_tests__integration__redis__test__entity_cache_authorization-3.snap index 2bee2eb129..cf3841f189 100644 --- a/apollo-router/tests/integration/snapshots/integration_tests__integration__redis__test__entity_cache_authorization-3.snap +++ b/apollo-router/tests/integration/snapshots/integration_tests__integration__redis__test__entity_cache_authorization-3.snap @@ -3,6 +3,18 @@ source: apollo-router/tests/integration/redis.rs expression: response --- { + "errors": [ + { + "message": "Unauthorized field or type", + "path": [ + "me", + "name" + ], + "extensions": { + "code": "UNAUTHORIZED_FIELD_OR_TYPE" + } + } + ], "data": { "me": { "id": "1", @@ -38,17 +50,5 @@ expression: response ] } ] - }, - "errors": [ - { - "message": "Unauthorized field or type", - "path": [ - "me", - "name" - ], - "extensions": { - "code": "UNAUTHORIZED_FIELD_OR_TYPE" - } - } - ] + } } diff --git a/apollo-router/tests/integration/snapshots/integration_tests__integration__redis__test__entity_cache_authorization.snap b/apollo-router/tests/integration/snapshots/integration_tests__integration__redis__test__entity_cache_authorization.snap index 1c4519a0aa..3db50b5ceb 100644 --- a/apollo-router/tests/integration/snapshots/integration_tests__integration__redis__test__entity_cache_authorization.snap +++ b/apollo-router/tests/integration/snapshots/integration_tests__integration__redis__test__entity_cache_authorization.snap @@ -3,6 +3,30 @@ source: apollo-router/tests/integration/redis.rs expression: response --- { + "errors": [ + { + "message": "Unauthorized field or type", + "path": [ + "me" + ], + "extensions": { + "code": "UNAUTHORIZED_FIELD_OR_TYPE" + } + }, + { + "message": "Unauthorized field or type", + "path": [ + "topProducts", + "@", + "reviews", + "@", + "author" + ], + "extensions": { + "code": "UNAUTHORIZED_FIELD_OR_TYPE" + } + } + ], "data": { "me": null, "topProducts": [ @@ -29,29 +53,5 @@ expression: response ] } ] - }, - "errors": [ - { - "message": "Unauthorized field or type", - "path": [ - "me" - ], - "extensions": { - "code": "UNAUTHORIZED_FIELD_OR_TYPE" - } - }, - { - "message": "Unauthorized field or type", - "path": [ - "topProducts", - "@", - "reviews", - "@", - "author" - ], - "extensions": { - "code": "UNAUTHORIZED_FIELD_OR_TYPE" - } - } - ] + } }