From 4500389dbb737ad8def06be2ee7a811e1357ba5f Mon Sep 17 00:00:00 2001 From: Tushar Mathur Date: Sun, 12 May 2024 17:33:29 +0530 Subject: [PATCH] chore: update configuration test specifications --- ...nerator__from_proto__test__from_proto.snap | 65 ------------------- ...m_proto__test__from_proto_no_pkg_file.snap | 22 ------- ...oto__test__from_proto_no_service_file.snap | 5 -- ...rom_proto__test__greetings_proto_file.snap | 19 ------ ...tor__from_proto__test__required_types.snap | 24 ------- tests/core/parse.rs | 2 +- tests/execution/add-field-index-list.md | 2 +- tests/execution/add-field-many-list.md | 2 +- tests/execution/add-field-many.md | 2 +- tests/execution/add-field-modify.md | 2 +- tests/execution/add-field-with-composition.md | 2 +- tests/execution/add-field-with-modify.md | 2 +- tests/execution/add-field.md | 2 +- tests/execution/apollo-tracing.md | 2 +- tests/execution/async-cache-disabled.md | 2 +- .../async-cache-enable-multiple-resolvers.md | 2 +- tests/execution/async-cache-enabled.md | 2 +- tests/execution/auth-basic.md | 2 +- tests/execution/auth-jwt.md | 2 +- .../execution/auth-protected-without-auth.md | 2 +- tests/execution/auth.md | 2 +- tests/execution/batching-default.md | 2 +- tests/execution/batching-disabled.md | 2 +- tests/execution/batching-group-by-default.md | 2 +- tests/execution/batching-group-by.md | 2 +- tests/execution/batching-post.md | 2 +- tests/execution/batching.md | 2 +- tests/execution/cache-control.md | 2 +- tests/execution/caching-collision.md | 2 +- tests/execution/caching.md | 2 +- tests/execution/call-graphql-datasource.md | 2 +- tests/execution/call-multiple-steps-piping.md | 2 +- tests/execution/call-mutation.md | 2 +- tests/execution/call-operator.md | 2 +- tests/execution/cors-allow-cred-false.md | 2 +- tests/execution/cors-allow-cred-true.md | 2 +- tests/execution/cors-allow-cred-vary.md | 2 +- .../execution/cors-invalid-expose-headers.md | 2 +- tests/execution/cors-invalid-headers.md | 2 +- tests/execution/cors-invalid-methods.md | 2 +- tests/execution/cors-invalid-origins.md | 2 +- tests/execution/custom-headers.md | 2 +- tests/execution/env-value.md | 2 +- tests/execution/experimental-headers-error.md | 2 +- tests/execution/experimental-headers.md | 2 +- .../graphql-dataloader-batch-keys.md | 2 +- .../graphql-dataloader-batch-request.md | 2 +- .../graphql-dataloader-no-batch-request.md | 2 +- tests/execution/graphql-datasource-errors.md | 2 +- .../execution/graphql-datasource-mutation.md | 2 +- tests/execution/graphql-datasource-no-args.md | 2 +- .../execution/graphql-datasource-with-args.md | 2 +- tests/execution/grpc-batch.md | 2 +- tests/execution/grpc-error.md | 2 +- .../grpc-override-url-from-upstream.md | 2 +- .../execution/grpc-proto-with-same-package.md | 2 +- tests/execution/grpc-reflection.md | 2 +- tests/execution/grpc-simple.md | 2 +- tests/execution/grpc-url-from-upstream.md | 2 +- tests/execution/https.md | 2 +- tests/execution/inline-field.md | 2 +- tests/execution/inline-index-list.md | 2 +- tests/execution/inline-many-list.md | 2 +- tests/execution/inline-many.md | 2 +- tests/execution/input-type-protected-error.md | 2 +- tests/execution/io-cache.md | 2 +- tests/execution/jsonplaceholder-call-post.md | 2 +- tests/execution/modified-field.md | 2 +- tests/execution/mutation-put.md | 2 +- tests/execution/mutation.md | 2 +- tests/execution/n-plus-one-list.md | 2 +- tests/execution/n-plus-one.md | 2 +- tests/execution/nested-objects.md | 2 +- tests/execution/nesting-level3.md | 2 +- tests/execution/nullable-arg-query.md | 2 +- tests/execution/omit-index-list.md | 2 +- tests/execution/omit-many.md | 2 +- tests/execution/omit-resolved-by-parent.md | 2 +- tests/execution/recursive-type-json.md | 2 +- tests/execution/recursive-types.md | 2 +- tests/execution/ref-other-nested.md | 2 +- tests/execution/ref-other.md | 2 +- tests/execution/rename-field.md | 2 +- .../execution/request-to-upstream-batching.md | 2 +- tests/execution/resolve-with-headers.md | 2 +- tests/execution/resolve-with-vars.md | 2 +- tests/execution/resolved-by-parent.md | 2 +- tests/execution/rest-api-error.md | 2 +- tests/execution/rest-api-post.md | 2 +- tests/execution/rest-api.md | 2 +- tests/execution/showcase.md | 2 +- tests/execution/simple-graphql.md | 2 +- tests/execution/simple-query.md | 2 +- tests/execution/test-add-field-error.md | 2 +- tests/execution/test-add-field-list.md | 2 +- tests/execution/test-add-field.md | 2 +- .../test-add-link-to-empty-config.md | 2 +- tests/execution/test-all-blueprint-errors.md | 2 +- tests/execution/test-batch-operator-post.md | 2 +- tests/execution/test-batching-group-by.md | 2 +- tests/execution/test-cache.md | 2 +- tests/execution/test-call-operator-errors.md | 2 +- .../test-conflict-allowed-headers.md | 4 +- tests/execution/test-conflict-vars.md | 4 +- tests/execution/test-custom-scalar.md | 2 +- tests/execution/test-custom-types.md | 2 +- tests/execution/test-dbl-usage-many.md | 2 +- tests/execution/test-dbl-usage.md | 2 +- tests/execution/test-description-many.md | 2 +- .../test-directives-undef-null-fields.md | 2 +- tests/execution/test-duplicated-link.md | 2 +- tests/execution/test-empty-link.md | 2 +- tests/execution/test-enum-default.md | 2 +- tests/execution/test-enum-description.md | 2 +- tests/execution/test-enum-empty.md | 2 +- tests/execution/test-enum-merge.md | 4 +- tests/execution/test-enum.md | 2 +- tests/execution/test-expr-error.md | 2 +- tests/execution/test-expr-with-add-field.md | 2 +- tests/execution/test-expr-with-inline.md | 2 +- tests/execution/test-expr-with-mustache.md | 2 +- tests/execution/test-expr.md | 2 +- ...ield-already-implemented-from-Interface.md | 2 +- .../test-graphqlsource-no-base-url.md | 2 +- tests/execution/test-graphqlsource.md | 2 +- .../test-groupby-without-batching.md | 2 +- tests/execution/test-grpc-group-by.md | 2 +- .../test-grpc-invalid-method-format.md | 2 +- tests/execution/test-grpc-invalid-proto-id.md | 2 +- tests/execution/test-grpc-missing-fields.md | 2 +- tests/execution/test-grpc-nested-data.md | 2 +- tests/execution/test-grpc-nested-optional.md | 2 +- tests/execution/test-grpc-optional.md | 2 +- tests/execution/test-grpc-proto-path.md | 2 +- tests/execution/test-grpc-service-method.md | 2 +- tests/execution/test-grpc-service.md | 2 +- tests/execution/test-grpc.md | 2 +- tests/execution/test-hostname-faliure.md | 2 +- tests/execution/test-http-baseurl.md | 2 +- tests/execution/test-http-headers.md | 2 +- tests/execution/test-http-tmpl.md | 2 +- tests/execution/test-http-with-add-field.md | 2 +- tests/execution/test-http-with-inline.md | 2 +- .../execution/test-http-with-mustache-expr.md | 2 +- tests/execution/test-http.md | 2 +- tests/execution/test-inline-error.md | 2 +- tests/execution/test-inline-list.md | 2 +- tests/execution/test-inline.md | 2 +- tests/execution/test-interface-from-json.md | 2 +- tests/execution/test-interface-result.md | 2 +- tests/execution/test-interface.md | 2 +- tests/execution/test-invalid-query-in-http.md | 2 +- tests/execution/test-invalid-server.md | 2 +- tests/execution/test-js-multiple-scripts.md | 2 +- tests/execution/test-js-request-response-2.md | 2 +- tests/execution/test-js-request-response.md | 2 +- tests/execution/test-lack-resolver.md | 2 +- tests/execution/test-merge-batch.md | 6 +- tests/execution/test-merge-nested.md | 4 +- tests/execution/test-merge-query.md | 4 +- .../test-merge-right-with-link-config.md | 2 +- tests/execution/test-merge-server-sdl.md | 2 +- tests/execution/test-merge-union.md | 4 +- .../test-missing-argument-on-all-resolvers.md | 2 +- .../test-missing-mutation-resolver.md | 2 +- .../execution/test-missing-query-resolver.md | 2 +- tests/execution/test-missing-root-types.md | 2 +- tests/execution/test-missing-schema-query.md | 2 +- tests/execution/test-modify.md | 2 +- tests/execution/test-multi-interface.md | 2 +- ...multiple-resolvable-directives-on-field.md | 2 +- tests/execution/test-nested-input.md | 2 +- tests/execution/test-nested-link.md | 2 +- tests/execution/test-nested-value.md | 2 +- tests/execution/test-no-base-url.md | 2 +- tests/execution/test-null-in-array.md | 2 +- tests/execution/test-null-in-object.md | 2 +- tests/execution/test-omit-list.md | 2 +- tests/execution/test-omit.md | 2 +- tests/execution/test-params-as-body.md | 2 +- tests/execution/test-query-documentation.md | 2 +- tests/execution/test-query.md | 2 +- tests/execution/test-ref-other.md | 2 +- tests/execution/test-response-header-merge.md | 4 +- tests/execution/test-response-header-value.md | 2 +- .../execution/test-response-headers-multi.md | 2 +- tests/execution/test-response-headers-name.md | 2 +- tests/execution/test-scalars.md | 2 +- tests/execution/test-server-base-types.md | 4 +- tests/execution/test-server-vars.md | 2 +- tests/execution/test-set-cookie-headers.md | 2 +- tests/execution/test-static-value.md | 2 +- tests/execution/test-tag.md | 2 +- tests/execution/test-undefined-query.md | 2 +- tests/execution/test-union.md | 2 +- tests/execution/test-upstream-headers.md | 2 +- tests/execution/test-upstream.md | 2 +- .../execution/undeclared-type-no-base-url.md | 2 +- tests/execution/undeclared-type.md | 2 +- tests/execution/upstream-batching.md | 2 +- tests/execution/upstream-fail-request.md | 2 +- tests/execution/with-args-url.md | 2 +- tests/execution/with-args.md | 2 +- tests/execution/with-nesting.md | 2 +- 204 files changed, 209 insertions(+), 344 deletions(-) delete mode 100644 src/core/generator/snapshots/tailcall__generator__from_proto__test__from_proto.snap delete mode 100644 src/core/generator/snapshots/tailcall__generator__from_proto__test__from_proto_no_pkg_file.snap delete mode 100644 src/core/generator/snapshots/tailcall__generator__from_proto__test__from_proto_no_service_file.snap delete mode 100644 src/core/generator/snapshots/tailcall__generator__from_proto__test__greetings_proto_file.snap delete mode 100644 src/core/generator/snapshots/tailcall__generator__from_proto__test__required_types.snap diff --git a/src/core/generator/snapshots/tailcall__generator__from_proto__test__from_proto.snap b/src/core/generator/snapshots/tailcall__generator__from_proto__test__from_proto.snap deleted file mode 100644 index 0ecde2d9b1..0000000000 --- a/src/core/generator/snapshots/tailcall__generator__from_proto__test__from_proto.snap +++ /dev/null @@ -1,65 +0,0 @@ ---- -source: src/generator/from_proto.rs -expression: result ---- -schema @server @upstream { - query: Query -} - -input GREETINGS_A_B_HELLO_REQUEST @tag(id: "greetings_a.b.HelloRequest") { - name: String -} - -input GREETINGS_B_C_HELLO_REQUEST @tag(id: "greetings_b.c.HelloRequest") { - name: String -} - -input NEWS_AUTHOR @tag(id: "news.Author") { - email: String - name: String -} - -input NEWS_MULTIPLE_NEWS_ID @tag(id: "news.MultipleNewsId") { - ids: [NEWS_NEWS_ID]! -} - -input NEWS_NEWS @tag(id: "news.News") { - author: NEWS_AUTHOR - body: String - foo: NEWS_STATUS - id: Int - post_image: String - title: String -} - -input NEWS_NEWS_ID @tag(id: "news.NewsId") { - id: Int -} - -enum NEWS_STATUS { - DRAFT - PUBLISHED -} - -type GREETINGS_A_B_HELLO_REPLY @tag(id: "greetings_a.b.HelloReply") { - message: String -} - -type GREETINGS_B_C_HELLO_REPLY @tag(id: "greetings_b.c.HelloReply") { - message: String -} - -type NEWS_NEWS_LIST @tag(id: "news.NewsList") { - news: [NEWS_NEWS]! -} - -type Query { - greetings_a_b_say_hello(hello_request: GREETINGS_A_B_HELLO_REQUEST!): GREETINGS_A_B_HELLO_REPLY! @grpc(method: "greetings_a.b.SayHello") - greetings_b_c_say_hello(hello_request: GREETINGS_B_C_HELLO_REQUEST!): GREETINGS_B_C_HELLO_REPLY! @grpc(method: "greetings_b.c.SayHello") - news_add_news(news: NEWS_NEWS!): NEWS_NEWS! @grpc(method: "news.AddNews") - news_delete_news(news_id: NEWS_NEWS_ID!): NEWS_EMPTY! @grpc(method: "news.DeleteNews") - news_edit_news(news: NEWS_NEWS!): NEWS_NEWS! @grpc(method: "news.EditNews") - news_get_all_news: NEWS_NEWS_LIST! @grpc(method: "news.GetAllNews") - news_get_multiple_news(multiple_news_id: NEWS_MULTIPLE_NEWS_ID!): NEWS_NEWS_LIST! @grpc(method: "news.GetMultipleNews") - news_get_news(news_id: NEWS_NEWS_ID!): NEWS_NEWS! @grpc(method: "news.GetNews") -} diff --git a/src/core/generator/snapshots/tailcall__generator__from_proto__test__from_proto_no_pkg_file.snap b/src/core/generator/snapshots/tailcall__generator__from_proto__test__from_proto_no_pkg_file.snap deleted file mode 100644 index 2947033ec3..0000000000 --- a/src/core/generator/snapshots/tailcall__generator__from_proto__test__from_proto_no_pkg_file.snap +++ /dev/null @@ -1,22 +0,0 @@ ---- -source: src/generator/from_proto.rs -expression: result ---- -schema @server @upstream { - query: Query -} - -type NEWS @tag(id: "News") { - body: String - id: Int - post_image: String - title: String -} - -type NEWS_LIST @tag(id: "NewsList") { - news: [NEWS]! -} - -type Query { - get_all_news: NEWS_LIST! @grpc(method: "GetAllNews") -} diff --git a/src/core/generator/snapshots/tailcall__generator__from_proto__test__from_proto_no_service_file.snap b/src/core/generator/snapshots/tailcall__generator__from_proto__test__from_proto_no_service_file.snap deleted file mode 100644 index 486b0cf7a0..0000000000 --- a/src/core/generator/snapshots/tailcall__generator__from_proto__test__from_proto_no_service_file.snap +++ /dev/null @@ -1,5 +0,0 @@ ---- -source: src/generator/from_proto.rs -expression: result ---- - diff --git a/src/core/generator/snapshots/tailcall__generator__from_proto__test__greetings_proto_file.snap b/src/core/generator/snapshots/tailcall__generator__from_proto__test__greetings_proto_file.snap deleted file mode 100644 index 65548ad9c4..0000000000 --- a/src/core/generator/snapshots/tailcall__generator__from_proto__test__greetings_proto_file.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: src/generator/from_proto.rs -expression: result ---- -schema @server @upstream { - query: Query -} - -input GREETINGS_HELLO_REQUEST @tag(id: "greetings.HelloRequest") { - name: String -} - -type GREETINGS_HELLO_REPLY @tag(id: "greetings.HelloReply") { - message: String -} - -type Query { - greetings_say_hello(hello_request: GREETINGS_HELLO_REQUEST!): GREETINGS_HELLO_REPLY! @grpc(method: "greetings.SayHello") -} diff --git a/src/core/generator/snapshots/tailcall__generator__from_proto__test__required_types.snap b/src/core/generator/snapshots/tailcall__generator__from_proto__test__required_types.snap deleted file mode 100644 index 95ced99cc2..0000000000 --- a/src/core/generator/snapshots/tailcall__generator__from_proto__test__required_types.snap +++ /dev/null @@ -1,24 +0,0 @@ ---- -source: src/generator/from_proto.rs -expression: config ---- -schema @server @upstream { - query: Query -} - -type PERSON_PERSON @tag(id: "person.Person") { - email: String - id: Int! - name: String! - phone: [PERSON_PHONE_NUMBER]! - string_map: JSON -} - -type PERSON_PHONE_NUMBER @tag(id: "person.PhoneNumber") { - number: String! - type: String -} - -type Query { - person_get_person: PERSON_PERSON! @grpc(method: "person.GetPerson") -} diff --git a/tests/core/parse.rs b/tests/core/parse.rs index d20894b001..2a6d456daa 100644 --- a/tests/core/parse.rs +++ b/tests/core/parse.rs @@ -163,7 +163,7 @@ impl ExecutionSpec { let source = Source::from_str(&lang)?; match name { - "server" => { + "config" => { // Server configs are only parsed if the test isn't skipped. server.push((source, content)); } diff --git a/tests/execution/add-field-index-list.md b/tests/execution/add-field-index-list.md index 2b58267db9..3985b7ae5d 100644 --- a/tests/execution/add-field-index-list.md +++ b/tests/execution/add-field-index-list.md @@ -1,6 +1,6 @@ # Sending field index list -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/add-field-many-list.md b/tests/execution/add-field-many-list.md index fe4cda4274..8720f0ee4a 100644 --- a/tests/execution/add-field-many-list.md +++ b/tests/execution/add-field-many-list.md @@ -4,7 +4,7 @@ identity: true # add-field-many-list -```graphql @server +```graphql @config schema @server @upstream { query: Query } diff --git a/tests/execution/add-field-many.md b/tests/execution/add-field-many.md index af1008ef4f..588afa186e 100644 --- a/tests/execution/add-field-many.md +++ b/tests/execution/add-field-many.md @@ -4,7 +4,7 @@ identity: true # add-field-many -```graphql @server +```graphql @config schema @server @upstream { query: Query } diff --git a/tests/execution/add-field-modify.md b/tests/execution/add-field-modify.md index 46549bd3b4..f444c623e8 100644 --- a/tests/execution/add-field-modify.md +++ b/tests/execution/add-field-modify.md @@ -1,6 +1,6 @@ # Add field modify -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/add-field-with-composition.md b/tests/execution/add-field-with-composition.md index 732bc40115..a098cb0aab 100644 --- a/tests/execution/add-field-with-composition.md +++ b/tests/execution/add-field-with-composition.md @@ -1,6 +1,6 @@ # Add field with composition -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/add-field-with-modify.md b/tests/execution/add-field-with-modify.md index ec738b8f11..933e921ae1 100644 --- a/tests/execution/add-field-with-modify.md +++ b/tests/execution/add-field-with-modify.md @@ -1,6 +1,6 @@ # Add field with modify -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/add-field.md b/tests/execution/add-field.md index 5fab2d7367..754c70fc1e 100644 --- a/tests/execution/add-field.md +++ b/tests/execution/add-field.md @@ -1,6 +1,6 @@ # Add field -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/apollo-tracing.md b/tests/execution/apollo-tracing.md index 72ffd9b01b..8d49d91742 100644 --- a/tests/execution/apollo-tracing.md +++ b/tests/execution/apollo-tracing.md @@ -1,6 +1,6 @@ # Apollo Tracing -```graphql @server +```graphql @config schema @server(port: 8000, hostname: "0.0.0.0") @telemetry(export: {apollo: {apiKey: "", graphRef: "tailcall-demo-3@current"}}) { diff --git a/tests/execution/async-cache-disabled.md b/tests/execution/async-cache-disabled.md index 03366d8033..f5d299822e 100644 --- a/tests/execution/async-cache-disabled.md +++ b/tests/execution/async-cache-disabled.md @@ -1,6 +1,6 @@ # Async Cache Disabled -```graphql @server +```graphql @config schema @server(port: 8000, queryValidation: false) @upstream(baseURL: "http://jsonplaceholder.typicode.com") { query: Query } diff --git a/tests/execution/async-cache-enable-multiple-resolvers.md b/tests/execution/async-cache-enable-multiple-resolvers.md index 6d9838b1ed..7756b5b7f0 100644 --- a/tests/execution/async-cache-enable-multiple-resolvers.md +++ b/tests/execution/async-cache-enable-multiple-resolvers.md @@ -1,6 +1,6 @@ # Async Cache Enabled -```graphql @server +```graphql @config schema @server(port: 8000, queryValidation: false) @upstream(baseURL: "http://jsonplaceholder.typicode.com", dedupe: true) { diff --git a/tests/execution/async-cache-enabled.md b/tests/execution/async-cache-enabled.md index f048b3f3b0..2f85e72a15 100644 --- a/tests/execution/async-cache-enabled.md +++ b/tests/execution/async-cache-enabled.md @@ -1,6 +1,6 @@ # Async Cache Enabled -```graphql @server +```graphql @config schema @server(port: 8000, queryValidation: false) @upstream(baseURL: "http://jsonplaceholder.typicode.com", dedupe: true) { diff --git a/tests/execution/auth-basic.md b/tests/execution/auth-basic.md index b8af3de0b0..e0abc43c27 100644 --- a/tests/execution/auth-basic.md +++ b/tests/execution/auth-basic.md @@ -1,6 +1,6 @@ # Auth with BasicAuth -```graphql @server +```graphql @config schema @server(port: 8000) @link(id: "htpasswd", type: Htpasswd, src: ".htpasswd") { query: Query mutation: Mutation diff --git a/tests/execution/auth-jwt.md b/tests/execution/auth-jwt.md index 64f3b53ad8..0fa2951011 100644 --- a/tests/execution/auth-jwt.md +++ b/tests/execution/auth-jwt.md @@ -1,6 +1,6 @@ # Auth with JWT loaded from expr -```graphql @server +```graphql @config schema @server(port: 8000) @link(id: "jwks", type: Jwks, src: "jwks.json") { query: Query mutation: Mutation diff --git a/tests/execution/auth-protected-without-auth.md b/tests/execution/auth-protected-without-auth.md index 3d6d46fc60..e7d2a8d2c7 100644 --- a/tests/execution/auth-protected-without-auth.md +++ b/tests/execution/auth-protected-without-auth.md @@ -4,7 +4,7 @@ error: true # Using @protected operator without specifying server.auth config -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/auth.md b/tests/execution/auth.md index 3dc2068978..c31f89e7c2 100644 --- a/tests/execution/auth.md +++ b/tests/execution/auth.md @@ -4,7 +4,7 @@ identity: true # auth -```graphql @server +```graphql @config schema @server @upstream diff --git a/tests/execution/batching-default.md b/tests/execution/batching-default.md index 1c8936528a..6abee0a2d0 100644 --- a/tests/execution/batching-default.md +++ b/tests/execution/batching-default.md @@ -1,6 +1,6 @@ # Batching default -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com", httpCache: true, batch: {delay: 10}) { query: Query } diff --git a/tests/execution/batching-disabled.md b/tests/execution/batching-disabled.md index 4c8d4c6ea0..d825a1cb58 100644 --- a/tests/execution/batching-disabled.md +++ b/tests/execution/batching-disabled.md @@ -1,6 +1,6 @@ # Batching disabled -```json @server +```json @config { "server": {}, "upstream": { diff --git a/tests/execution/batching-group-by-default.md b/tests/execution/batching-group-by-default.md index 19b6e035a8..2831031714 100644 --- a/tests/execution/batching-group-by-default.md +++ b/tests/execution/batching-group-by-default.md @@ -1,6 +1,6 @@ # Batching group by default -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com", httpCache: true, batch: {delay: 1, maxSize: 1000}) { diff --git a/tests/execution/batching-group-by.md b/tests/execution/batching-group-by.md index e78ab62899..4525e06f04 100644 --- a/tests/execution/batching-group-by.md +++ b/tests/execution/batching-group-by.md @@ -1,6 +1,6 @@ # Batching group by -```graphql @server +```graphql @config schema @server(port: 8000, queryValidation: false) @upstream(baseURL: "http://jsonplaceholder.typicode.com", httpCache: true, batch: {delay: 1, maxSize: 1000}) { diff --git a/tests/execution/batching-post.md b/tests/execution/batching-post.md index a2a6d42c87..aa166d2742 100644 --- a/tests/execution/batching-post.md +++ b/tests/execution/batching-post.md @@ -1,6 +1,6 @@ # Batching post -```graphql @server +```graphql @config schema @server(port: 8000, queryValidation: false) @upstream( diff --git a/tests/execution/batching.md b/tests/execution/batching.md index df2813df5e..262c653379 100644 --- a/tests/execution/batching.md +++ b/tests/execution/batching.md @@ -1,6 +1,6 @@ # Sending a batched graphql request -```json @server +```json @config { "server": { "batchRequests": true diff --git a/tests/execution/cache-control.md b/tests/execution/cache-control.md index ffef976562..23c1588d34 100644 --- a/tests/execution/cache-control.md +++ b/tests/execution/cache-control.md @@ -1,6 +1,6 @@ # Sending requests to verify Cache-Control behavior -```json @server +```json @config { "server": { "headers": { diff --git a/tests/execution/caching-collision.md b/tests/execution/caching-collision.md index 116a20828b..3aeb69ee4c 100644 --- a/tests/execution/caching-collision.md +++ b/tests/execution/caching-collision.md @@ -1,6 +1,6 @@ # Caching Collision -```graphql @server +```graphql @config schema @upstream(baseURL: "http://example.com", batch: {delay: 1, maxSize: 1000}) { query: Query } diff --git a/tests/execution/caching.md b/tests/execution/caching.md index 0dd9ee7616..04e57f382f 100644 --- a/tests/execution/caching.md +++ b/tests/execution/caching.md @@ -1,6 +1,6 @@ # Caching -```graphql @server +```graphql @config schema @upstream(baseURL: "http://example.com", batch: {delay: 1, maxSize: 1000}) { query: Query } diff --git a/tests/execution/call-graphql-datasource.md b/tests/execution/call-graphql-datasource.md index e033de3f63..1f55fad496 100644 --- a/tests/execution/call-graphql-datasource.md +++ b/tests/execution/call-graphql-datasource.md @@ -1,6 +1,6 @@ # Call operator with graphQL datasource -```graphql @server +```graphql @config schema @server(port: 8000, hostname: "0.0.0.0") @upstream(baseURL: "http://jsonplaceholder.typicode.com", httpCache: true) { diff --git a/tests/execution/call-multiple-steps-piping.md b/tests/execution/call-multiple-steps-piping.md index fba8b69b7b..436a3d2a38 100644 --- a/tests/execution/call-multiple-steps-piping.md +++ b/tests/execution/call-multiple-steps-piping.md @@ -1,6 +1,6 @@ # Call multiple steps piping -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/call-mutation.md b/tests/execution/call-mutation.md index 929d6bbf8f..cf68e14028 100644 --- a/tests/execution/call-mutation.md +++ b/tests/execution/call-mutation.md @@ -1,6 +1,6 @@ # Call mutation -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") { query: Query mutation: Mutation diff --git a/tests/execution/call-operator.md b/tests/execution/call-operator.md index 404ad97a04..a239e7174f 100644 --- a/tests/execution/call-operator.md +++ b/tests/execution/call-operator.md @@ -36,7 +36,7 @@ message NewsList { } ``` -```graphql @server +```graphql @config schema @server(port: 8000, hostname: "0.0.0.0") @upstream(baseURL: "http://jsonplaceholder.typicode.com", httpCache: true) diff --git a/tests/execution/cors-allow-cred-false.md b/tests/execution/cors-allow-cred-false.md index b6b6d96143..055beac4ff 100644 --- a/tests/execution/cors-allow-cred-false.md +++ b/tests/execution/cors-allow-cred-false.md @@ -1,6 +1,6 @@ # Cors allow cred false -```graphql @server +```graphql @config schema @upstream(baseURL: "http://example.com", batch: {delay: 1, maxSize: 1000}) @server( diff --git a/tests/execution/cors-allow-cred-true.md b/tests/execution/cors-allow-cred-true.md index 5ffed35112..1c570f6b14 100644 --- a/tests/execution/cors-allow-cred-true.md +++ b/tests/execution/cors-allow-cred-true.md @@ -1,6 +1,6 @@ # Cors allow cred true -```graphql @server +```graphql @config schema @upstream(baseURL: "http://example.com", batch: {delay: 1, maxSize: 1000}) @server( diff --git a/tests/execution/cors-allow-cred-vary.md b/tests/execution/cors-allow-cred-vary.md index b1a131542c..cfc2f33e1b 100644 --- a/tests/execution/cors-allow-cred-vary.md +++ b/tests/execution/cors-allow-cred-vary.md @@ -1,6 +1,6 @@ # Cors allow cred vary -```graphql @server +```graphql @config schema @upstream(baseURL: "http://example.com", batch: {delay: 1, maxSize: 1000}) @server( diff --git a/tests/execution/cors-invalid-expose-headers.md b/tests/execution/cors-invalid-expose-headers.md index f9ac0d2046..6eb6c58a17 100644 --- a/tests/execution/cors-invalid-expose-headers.md +++ b/tests/execution/cors-invalid-expose-headers.md @@ -4,7 +4,7 @@ error: true # Cors invalid exposeHeaders -```graphql @server +```graphql @config schema @upstream(baseURL: "http://example.com", batch: {delay: 1, maxSize: 1000}) @server(headers: {cors: {allowCredentials: true, exposeHeaders: ["*"], allowMethods: [POST, OPTIONS]}}) { diff --git a/tests/execution/cors-invalid-headers.md b/tests/execution/cors-invalid-headers.md index bdbc37b55b..23e5d03e11 100644 --- a/tests/execution/cors-invalid-headers.md +++ b/tests/execution/cors-invalid-headers.md @@ -4,7 +4,7 @@ error: true # Cors invalid allowHeaders -```graphql @server +```graphql @config schema @upstream(baseURL: "http://example.com", batch: {delay: 1, maxSize: 1000}) @server(headers: {cors: {allowCredentials: true, allowHeaders: ["*"], allowMethods: [POST, OPTIONS]}}) { diff --git a/tests/execution/cors-invalid-methods.md b/tests/execution/cors-invalid-methods.md index c399b84acb..ed1eeddb7d 100644 --- a/tests/execution/cors-invalid-methods.md +++ b/tests/execution/cors-invalid-methods.md @@ -4,7 +4,7 @@ error: true # Cors invalid allowMethods -```graphql @server +```graphql @config schema @upstream(baseURL: "http://example.com", batch: {delay: 1, maxSize: 1000}) @server(headers: {cors: {allowCredentials: true}}) { diff --git a/tests/execution/cors-invalid-origins.md b/tests/execution/cors-invalid-origins.md index 1c6af30e80..8c11efe4f8 100644 --- a/tests/execution/cors-invalid-origins.md +++ b/tests/execution/cors-invalid-origins.md @@ -4,7 +4,7 @@ error: true # Cors invalid allowOrigins -```graphql @server +```graphql @config schema @upstream(baseURL: "http://example.com", batch: {delay: 1, maxSize: 1000}) @server(headers: {cors: {allowCredentials: true, allowOrigins: ["*"], allowMethods: [POST, OPTIONS]}}) { diff --git a/tests/execution/custom-headers.md b/tests/execution/custom-headers.md index 209130d669..f84209d759 100644 --- a/tests/execution/custom-headers.md +++ b/tests/execution/custom-headers.md @@ -1,6 +1,6 @@ # Custom Headers -```json @server +```json @config { "server": { "headers": { diff --git a/tests/execution/env-value.md b/tests/execution/env-value.md index 41b5d5541f..2c243e7a8b 100644 --- a/tests/execution/env-value.md +++ b/tests/execution/env-value.md @@ -1,6 +1,6 @@ # Env value -```json @server +```json @config { "server": {}, "upstream": { diff --git a/tests/execution/experimental-headers-error.md b/tests/execution/experimental-headers-error.md index 32b9822cd4..5850b142f3 100644 --- a/tests/execution/experimental-headers-error.md +++ b/tests/execution/experimental-headers-error.md @@ -4,7 +4,7 @@ error: true # test-experimental-headers-error -```graphql @server +```graphql @config schema @server(headers: {experimental: ["non-experimental", "foo", "bar", "tailcall"]}) { query: Query } diff --git a/tests/execution/experimental-headers.md b/tests/execution/experimental-headers.md index 35689aad50..b6d4ad3e00 100644 --- a/tests/execution/experimental-headers.md +++ b/tests/execution/experimental-headers.md @@ -1,6 +1,6 @@ # Experimental headers -```graphql @server +```graphql @config schema @server(headers: {experimental: ["x-tailcall", "X-experimental"]}) { query: Query } diff --git a/tests/execution/graphql-dataloader-batch-keys.md b/tests/execution/graphql-dataloader-batch-keys.md index 08a39eab4c..e49c2b1fb1 100644 --- a/tests/execution/graphql-dataloader-batch-keys.md +++ b/tests/execution/graphql-dataloader-batch-keys.md @@ -7,7 +7,7 @@ skip: true [//]: # "nested @graphql directives currently not supported" [//]: # "This test had an assertion with a fail annotation that testconv cannot convert losslessly. If you need the original responses, you can find it in git history. For example, at commit https://github.com/tailcallhq/tailcall/tree/1c32ca9e8080ae3b17e9cf41078d028d3e0289da" -```graphql @server +```graphql @config schema @server(port: 8001, queryValidation: false, hostname: "0.0.0.0") @upstream(baseURL: "http://upstream/graphql", httpCache: true, batch: {delay: 1}) { diff --git a/tests/execution/graphql-dataloader-batch-request.md b/tests/execution/graphql-dataloader-batch-request.md index f81f742a83..d47b1975ce 100644 --- a/tests/execution/graphql-dataloader-batch-request.md +++ b/tests/execution/graphql-dataloader-batch-request.md @@ -1,6 +1,6 @@ # Graphql datasource -```graphql @server +```graphql @config schema @upstream(batch: {delay: 1}) { query: Query } diff --git a/tests/execution/graphql-dataloader-no-batch-request.md b/tests/execution/graphql-dataloader-no-batch-request.md index 585eb4da92..0492fe7054 100644 --- a/tests/execution/graphql-dataloader-no-batch-request.md +++ b/tests/execution/graphql-dataloader-no-batch-request.md @@ -1,6 +1,6 @@ # Graphql datasource -```graphql @server +```graphql @config schema @upstream(batch: {delay: 1}) { query: Query } diff --git a/tests/execution/graphql-datasource-errors.md b/tests/execution/graphql-datasource-errors.md index 788fd4de94..1859761bc9 100644 --- a/tests/execution/graphql-datasource-errors.md +++ b/tests/execution/graphql-datasource-errors.md @@ -1,6 +1,6 @@ # Graphql datasource -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/graphql-datasource-mutation.md b/tests/execution/graphql-datasource-mutation.md index 52b9bda7ed..0c9ef8f9c4 100644 --- a/tests/execution/graphql-datasource-mutation.md +++ b/tests/execution/graphql-datasource-mutation.md @@ -1,6 +1,6 @@ # Graphql datasource -```graphql @server +```graphql @config schema { query: Query mutation: Mutation diff --git a/tests/execution/graphql-datasource-no-args.md b/tests/execution/graphql-datasource-no-args.md index 3864a9ca3a..b9c958dac2 100644 --- a/tests/execution/graphql-datasource-no-args.md +++ b/tests/execution/graphql-datasource-no-args.md @@ -1,6 +1,6 @@ # Graphql datasource -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/graphql-datasource-with-args.md b/tests/execution/graphql-datasource-with-args.md index bc60e3ac45..d5c5f6b5d7 100644 --- a/tests/execution/graphql-datasource-with-args.md +++ b/tests/execution/graphql-datasource-with-args.md @@ -1,6 +1,6 @@ # Graphql datasource -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/grpc-batch.md b/tests/execution/grpc-batch.md index f49eab5a35..4db1d06a87 100644 --- a/tests/execution/grpc-batch.md +++ b/tests/execution/grpc-batch.md @@ -36,7 +36,7 @@ message NewsList { } ``` -```graphql @server +```graphql @config schema @server(port: 8000) @upstream(httpCache: true, batch: {delay: 10}) diff --git a/tests/execution/grpc-error.md b/tests/execution/grpc-error.md index 270ddbb4d0..39ffeef27c 100644 --- a/tests/execution/grpc-error.md +++ b/tests/execution/grpc-error.md @@ -36,7 +36,7 @@ message NewsList { } ``` -```graphql @server +```graphql @config schema @server(port: 8000) @upstream(httpCache: true, batch: {delay: 10}) diff --git a/tests/execution/grpc-override-url-from-upstream.md b/tests/execution/grpc-override-url-from-upstream.md index d8ba7b17dc..41e8b83748 100644 --- a/tests/execution/grpc-override-url-from-upstream.md +++ b/tests/execution/grpc-override-url-from-upstream.md @@ -36,7 +36,7 @@ message NewsList { } ``` -```graphql @server +```graphql @config schema @server(port: 8000) @upstream(httpCache: true, batch: {delay: 10}, baseURL: "http://not-a-valid-grpc-url.com") diff --git a/tests/execution/grpc-proto-with-same-package.md b/tests/execution/grpc-proto-with-same-package.md index 708864cae0..247b50a385 100644 --- a/tests/execution/grpc-proto-with-same-package.md +++ b/tests/execution/grpc-proto-with-same-package.md @@ -33,7 +33,7 @@ service BarService { } ``` -```graphql @server +```graphql @config schema @server(port: 8000) @upstream(baseURL: "http://localhost:50051") diff --git a/tests/execution/grpc-reflection.md b/tests/execution/grpc-reflection.md index 219432f345..500e7f0f89 100644 --- a/tests/execution/grpc-reflection.md +++ b/tests/execution/grpc-reflection.md @@ -1,6 +1,6 @@ # Grpc datasource -```graphql @server +```graphql @config schema @server(port: 8000) @upstream(httpCache: true, baseURL: "http://localhost:50051") diff --git a/tests/execution/grpc-simple.md b/tests/execution/grpc-simple.md index 7954c246db..672dc4956c 100644 --- a/tests/execution/grpc-simple.md +++ b/tests/execution/grpc-simple.md @@ -36,7 +36,7 @@ message NewsList { } ``` -```graphql @server +```graphql @config schema @server(port: 8000) @upstream(httpCache: true, batch: {delay: 10}) diff --git a/tests/execution/grpc-url-from-upstream.md b/tests/execution/grpc-url-from-upstream.md index 9437271ca5..f9c03fe7c3 100644 --- a/tests/execution/grpc-url-from-upstream.md +++ b/tests/execution/grpc-url-from-upstream.md @@ -36,7 +36,7 @@ message NewsList { } ``` -```graphql @server +```graphql @config schema @server(port: 8000) @upstream(httpCache: true, batch: {delay: 10}, baseURL: "http://localhost:50051") diff --git a/tests/execution/https.md b/tests/execution/https.md index 0cd1a62a0a..db8fb9e99c 100644 --- a/tests/execution/https.md +++ b/tests/execution/https.md @@ -1,6 +1,6 @@ # Against a server with HTTPS -```json @server +```json @config { "server": {}, "upstream": { diff --git a/tests/execution/inline-field.md b/tests/execution/inline-field.md index 638ffabff4..af33249c17 100644 --- a/tests/execution/inline-field.md +++ b/tests/execution/inline-field.md @@ -1,6 +1,6 @@ # Inline field -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/inline-index-list.md b/tests/execution/inline-index-list.md index 071555e9c2..c4d639f250 100644 --- a/tests/execution/inline-index-list.md +++ b/tests/execution/inline-index-list.md @@ -1,6 +1,6 @@ # Test inline index list -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/inline-many-list.md b/tests/execution/inline-many-list.md index 74bc360110..b18a755d36 100644 --- a/tests/execution/inline-many-list.md +++ b/tests/execution/inline-many-list.md @@ -4,7 +4,7 @@ identity: true # inline-many-list -```graphql @server +```graphql @config schema @server @upstream { query: Query } diff --git a/tests/execution/inline-many.md b/tests/execution/inline-many.md index b5f0a3d44a..4360a8d38f 100644 --- a/tests/execution/inline-many.md +++ b/tests/execution/inline-many.md @@ -4,7 +4,7 @@ identity: true # inline-many -```graphql @server +```graphql @config schema @server @upstream { query: Query } diff --git a/tests/execution/input-type-protected-error.md b/tests/execution/input-type-protected-error.md index 7d726a3588..9617dda88f 100644 --- a/tests/execution/input-type-protected-error.md +++ b/tests/execution/input-type-protected-error.md @@ -4,7 +4,7 @@ error: true # input-type-protected-error -```graphql @server +```graphql @config schema { query: Query mutation: Mutation diff --git a/tests/execution/io-cache.md b/tests/execution/io-cache.md index 6bc7d8abb7..0b02596cb7 100644 --- a/tests/execution/io-cache.md +++ b/tests/execution/io-cache.md @@ -1,6 +1,6 @@ # Call operator with GraphQL data source -```graphql @server +```graphql @config schema @server(port: 8000, hostname: "0.0.0.0") @upstream(baseURL: "http://jsonplaceholder.typicode.com", httpCache: true) { diff --git a/tests/execution/jsonplaceholder-call-post.md b/tests/execution/jsonplaceholder-call-post.md index 55156b6bd7..5bd0922191 100644 --- a/tests/execution/jsonplaceholder-call-post.md +++ b/tests/execution/jsonplaceholder-call-post.md @@ -1,6 +1,6 @@ # jsonplaceholder-call-post -```graphql @server +```graphql @config schema @server(port: 8000, hostname: "0.0.0.0") @upstream(baseURL: "http://jsonplaceholder.typicode.com", httpCache: true, batch: {delay: 100}) { diff --git a/tests/execution/modified-field.md b/tests/execution/modified-field.md index ffca3bf021..6268490796 100644 --- a/tests/execution/modified-field.md +++ b/tests/execution/modified-field.md @@ -1,6 +1,6 @@ # Modified field -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/mutation-put.md b/tests/execution/mutation-put.md index e411bdfaf6..88337983f5 100644 --- a/tests/execution/mutation-put.md +++ b/tests/execution/mutation-put.md @@ -1,6 +1,6 @@ # Mutation put -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") { query: Query mutation: Mutation diff --git a/tests/execution/mutation.md b/tests/execution/mutation.md index 8f0c4399a1..5d05e89923 100644 --- a/tests/execution/mutation.md +++ b/tests/execution/mutation.md @@ -1,6 +1,6 @@ # Mutation -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") { query: Query mutation: Mutation diff --git a/tests/execution/n-plus-one-list.md b/tests/execution/n-plus-one-list.md index b17ae0237f..156f7169f7 100644 --- a/tests/execution/n-plus-one-list.md +++ b/tests/execution/n-plus-one-list.md @@ -1,6 +1,6 @@ # n + 1 Request List -```graphql @server +```graphql @config schema @upstream(baseURL: "http://example.com", batch: {delay: 1, maxSize: 1000}) { query: Query } diff --git a/tests/execution/n-plus-one.md b/tests/execution/n-plus-one.md index e6649fa0af..90c67f48d7 100644 --- a/tests/execution/n-plus-one.md +++ b/tests/execution/n-plus-one.md @@ -1,6 +1,6 @@ # n + 1 Request -```graphql @server +```graphql @config schema @upstream(baseURL: "http://example.com", batch: {delay: 1, maxSize: 1000}) { query: Query } diff --git a/tests/execution/nested-objects.md b/tests/execution/nested-objects.md index 20c6357125..ffd0571beb 100644 --- a/tests/execution/nested-objects.md +++ b/tests/execution/nested-objects.md @@ -1,6 +1,6 @@ # Nested objects -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/nesting-level3.md b/tests/execution/nesting-level3.md index 393662e6f0..5d22d0ab5b 100644 --- a/tests/execution/nesting-level3.md +++ b/tests/execution/nesting-level3.md @@ -1,6 +1,6 @@ # Nesting level 3 -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") { query: Query } diff --git a/tests/execution/nullable-arg-query.md b/tests/execution/nullable-arg-query.md index b0dce76c45..4f6ab7b053 100644 --- a/tests/execution/nullable-arg-query.md +++ b/tests/execution/nullable-arg-query.md @@ -1,6 +1,6 @@ # Nullable arg query -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/omit-index-list.md b/tests/execution/omit-index-list.md index 071555e9c2..c4d639f250 100644 --- a/tests/execution/omit-index-list.md +++ b/tests/execution/omit-index-list.md @@ -1,6 +1,6 @@ # Test inline index list -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/omit-many.md b/tests/execution/omit-many.md index a9163c672d..da89d847e5 100644 --- a/tests/execution/omit-many.md +++ b/tests/execution/omit-many.md @@ -4,7 +4,7 @@ identity: true # omit-many -```graphql @server +```graphql @config schema @server @upstream { query: Query } diff --git a/tests/execution/omit-resolved-by-parent.md b/tests/execution/omit-resolved-by-parent.md index 31c225be45..ed66207db6 100644 --- a/tests/execution/omit-resolved-by-parent.md +++ b/tests/execution/omit-resolved-by-parent.md @@ -1,6 +1,6 @@ # Resolved by parent -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/recursive-type-json.md b/tests/execution/recursive-type-json.md index 917e3d307d..615f6baa6d 100644 --- a/tests/execution/recursive-type-json.md +++ b/tests/execution/recursive-type-json.md @@ -1,6 +1,6 @@ # Recursive Type JSON -```json @server +```json @config { "$schema": "./.tailcallrc.schema.json", "upstream": { diff --git a/tests/execution/recursive-types.md b/tests/execution/recursive-types.md index 2c55eba84a..71c0c2a8d2 100644 --- a/tests/execution/recursive-types.md +++ b/tests/execution/recursive-types.md @@ -1,6 +1,6 @@ # Recursive Type -```graphql @server +```graphql @config schema @server @upstream(baseURL: "https://jsonplaceholder.typicode.com") { query: Query } diff --git a/tests/execution/ref-other-nested.md b/tests/execution/ref-other-nested.md index dc031156c7..ac702723a8 100644 --- a/tests/execution/ref-other-nested.md +++ b/tests/execution/ref-other-nested.md @@ -1,6 +1,6 @@ # Ref other nested -```json @server +```json @config { "server": {}, "upstream": { diff --git a/tests/execution/ref-other.md b/tests/execution/ref-other.md index c38521b510..0dfce91017 100644 --- a/tests/execution/ref-other.md +++ b/tests/execution/ref-other.md @@ -1,6 +1,6 @@ # Ref other -```graphql @server +```graphql @config schema @server @upstream(baseURL: "https://jsonplaceholder.typicode.com") { query: Query } diff --git a/tests/execution/rename-field.md b/tests/execution/rename-field.md index 7d9aa53414..b42deb18b7 100644 --- a/tests/execution/rename-field.md +++ b/tests/execution/rename-field.md @@ -1,6 +1,6 @@ # Rename field -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/request-to-upstream-batching.md b/tests/execution/request-to-upstream-batching.md index eb97ccce75..b8f6e6076e 100644 --- a/tests/execution/request-to-upstream-batching.md +++ b/tests/execution/request-to-upstream-batching.md @@ -1,6 +1,6 @@ # Batched graphql request to batched upstream query -```json @server +```json @config { "server": { "batchRequests": true diff --git a/tests/execution/resolve-with-headers.md b/tests/execution/resolve-with-headers.md index d1ab78cb3f..f80ec028a4 100644 --- a/tests/execution/resolve-with-headers.md +++ b/tests/execution/resolve-with-headers.md @@ -1,6 +1,6 @@ # Resolve with headers -```graphql @server +```graphql @config schema @upstream(allowedHeaders: ["authorization"]) { query: Query } diff --git a/tests/execution/resolve-with-vars.md b/tests/execution/resolve-with-vars.md index 2303654204..1e85f387e9 100644 --- a/tests/execution/resolve-with-vars.md +++ b/tests/execution/resolve-with-vars.md @@ -1,6 +1,6 @@ # Resolve with vars -```graphql @server +```graphql @config schema @server(vars: [{key: "id", value: "1"}]) { query: Query } diff --git a/tests/execution/resolved-by-parent.md b/tests/execution/resolved-by-parent.md index 31c225be45..ed66207db6 100644 --- a/tests/execution/resolved-by-parent.md +++ b/tests/execution/resolved-by-parent.md @@ -1,6 +1,6 @@ # Resolved by parent -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/rest-api-error.md b/tests/execution/rest-api-error.md index a498049199..360d80a69d 100644 --- a/tests/execution/rest-api-error.md +++ b/tests/execution/rest-api-error.md @@ -9,7 +9,7 @@ query ($id: Int!) @rest(method: GET, path: "/user/$id") { } ``` -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") diff --git a/tests/execution/rest-api-post.md b/tests/execution/rest-api-post.md index 3a154e5cb2..a52311a8e8 100644 --- a/tests/execution/rest-api-post.md +++ b/tests/execution/rest-api-post.md @@ -9,7 +9,7 @@ query ($id: Int!) @rest(method: POST, path: "/user/$id") { } ``` -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") diff --git a/tests/execution/rest-api.md b/tests/execution/rest-api.md index 08301d8364..bbf2285ac5 100644 --- a/tests/execution/rest-api.md +++ b/tests/execution/rest-api.md @@ -9,7 +9,7 @@ query ($id: Int!) @rest(method: GET, path: "/user/$id") { } ``` -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") diff --git a/tests/execution/showcase.md b/tests/execution/showcase.md index 44f2f48546..85b1505ff7 100644 --- a/tests/execution/showcase.md +++ b/tests/execution/showcase.md @@ -1,6 +1,6 @@ # Showcase GraphQL Request -```graphql @server +```graphql @config schema @server(showcase: true) { query: Query } diff --git a/tests/execution/simple-graphql.md b/tests/execution/simple-graphql.md index 250dbf7a82..487d7a7dc7 100644 --- a/tests/execution/simple-graphql.md +++ b/tests/execution/simple-graphql.md @@ -1,6 +1,6 @@ # Simple GraphQL Request -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/simple-query.md b/tests/execution/simple-query.md index e803311ff7..736a7c5e18 100644 --- a/tests/execution/simple-query.md +++ b/tests/execution/simple-query.md @@ -1,6 +1,6 @@ # Simple query -```json @server +```json @config { "server": {}, "upstream": { diff --git a/tests/execution/test-add-field-error.md b/tests/execution/test-add-field-error.md index 870a93c51c..c223d4bdec 100644 --- a/tests/execution/test-add-field-error.md +++ b/tests/execution/test-add-field-error.md @@ -4,7 +4,7 @@ error: true # test-add-field-error -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/test-add-field-list.md b/tests/execution/test-add-field-list.md index 9a7f0b1874..21b0f9841c 100644 --- a/tests/execution/test-add-field-list.md +++ b/tests/execution/test-add-field-list.md @@ -4,7 +4,7 @@ identity: true # test-add-field-list -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { query: Query } diff --git a/tests/execution/test-add-field.md b/tests/execution/test-add-field.md index 676f29a479..0057dccbea 100644 --- a/tests/execution/test-add-field.md +++ b/tests/execution/test-add-field.md @@ -4,7 +4,7 @@ identity: true # test-add-field -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { query: Query } diff --git a/tests/execution/test-add-link-to-empty-config.md b/tests/execution/test-add-link-to-empty-config.md index 86ea9c1ed2..2d8aa9b16a 100644 --- a/tests/execution/test-add-link-to-empty-config.md +++ b/tests/execution/test-add-link-to-empty-config.md @@ -29,7 +29,7 @@ type Query { } ``` -```graphql @server +```graphql @config schema @server @upstream @link(src: "link-expr.graphql", type: Config) @link(src: "link-enum.graphql", type: Config) { query: Query } diff --git a/tests/execution/test-all-blueprint-errors.md b/tests/execution/test-all-blueprint-errors.md index ecb4cea545..40bcbe1a2d 100644 --- a/tests/execution/test-all-blueprint-errors.md +++ b/tests/execution/test-all-blueprint-errors.md @@ -4,7 +4,7 @@ error: true # test-all-blueprint-errors -```graphql @server +```graphql @config schema @server { query: Query mutation: Mutation diff --git a/tests/execution/test-batch-operator-post.md b/tests/execution/test-batch-operator-post.md index 7191a8e15d..6852794331 100644 --- a/tests/execution/test-batch-operator-post.md +++ b/tests/execution/test-batch-operator-post.md @@ -4,7 +4,7 @@ error: true # test-batch-operator-post -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://localhost:3000", batch: {delay: 1}) { query: Query } diff --git a/tests/execution/test-batching-group-by.md b/tests/execution/test-batching-group-by.md index 993ebb624c..5b8d73d9e3 100644 --- a/tests/execution/test-batching-group-by.md +++ b/tests/execution/test-batching-group-by.md @@ -4,7 +4,7 @@ identity: true # test-batching-group-by -```graphql @server +```graphql @config schema @server(port: 4000) @upstream(baseURL: "http://abc.com", batch: {delay: 1, headers: [], maxSize: 1000}) { query: Query } diff --git a/tests/execution/test-cache.md b/tests/execution/test-cache.md index 484a74e4cb..3c346b11a4 100644 --- a/tests/execution/test-cache.md +++ b/tests/execution/test-cache.md @@ -4,7 +4,7 @@ identity: true # test-cache -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { query: Query } diff --git a/tests/execution/test-call-operator-errors.md b/tests/execution/test-call-operator-errors.md index ed7ccf91c1..1147ee6381 100644 --- a/tests/execution/test-call-operator-errors.md +++ b/tests/execution/test-call-operator-errors.md @@ -4,7 +4,7 @@ error: true # test-call-operator -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://localhost:3000") { query: Query } diff --git a/tests/execution/test-conflict-allowed-headers.md b/tests/execution/test-conflict-allowed-headers.md index 94f9f7ca05..bab99fb9df 100644 --- a/tests/execution/test-conflict-allowed-headers.md +++ b/tests/execution/test-conflict-allowed-headers.md @@ -1,6 +1,6 @@ # test-conflict-allowed-headers -```graphql @server +```graphql @config schema @server @upstream(allowedHeaders: ["a", "b", "c"]) { query: Query } @@ -10,7 +10,7 @@ type Query { } ``` -```graphql @server +```graphql @config schema @server @upstream(allowedHeaders: ["b", "c", "d"]) { query: Query } diff --git a/tests/execution/test-conflict-vars.md b/tests/execution/test-conflict-vars.md index a02adb5f5e..e1253cecfe 100644 --- a/tests/execution/test-conflict-vars.md +++ b/tests/execution/test-conflict-vars.md @@ -1,6 +1,6 @@ # test-conflict-vars -```graphql @server +```graphql @config schema @server(vars: [{key: "a", value: "b"}, {key: "c", value: "d"}]) @upstream { query: Query } @@ -10,7 +10,7 @@ type Query { } ``` -```graphql @server +```graphql @config schema @server(vars: [{key: "a", value: "b"}, {key: "p", value: "q"}]) @upstream { query: Query } diff --git a/tests/execution/test-custom-scalar.md b/tests/execution/test-custom-scalar.md index 4d4ac316fb..8ba8865ad0 100644 --- a/tests/execution/test-custom-scalar.md +++ b/tests/execution/test-custom-scalar.md @@ -4,7 +4,7 @@ identity: true # test-custom-scalar -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { query: Query } diff --git a/tests/execution/test-custom-types.md b/tests/execution/test-custom-types.md index 76352489b9..1fa841caff 100644 --- a/tests/execution/test-custom-types.md +++ b/tests/execution/test-custom-types.md @@ -4,7 +4,7 @@ identity: true # test-custom-types -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") { query: Que mutation: Mut diff --git a/tests/execution/test-dbl-usage-many.md b/tests/execution/test-dbl-usage-many.md index 0917eb6325..481513d76b 100644 --- a/tests/execution/test-dbl-usage-many.md +++ b/tests/execution/test-dbl-usage-many.md @@ -4,7 +4,7 @@ error: true # test-dbl-usage-many -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/test-dbl-usage.md b/tests/execution/test-dbl-usage.md index d570e90442..d6445aceaf 100644 --- a/tests/execution/test-dbl-usage.md +++ b/tests/execution/test-dbl-usage.md @@ -4,7 +4,7 @@ error: true # test-dbl-usage -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/test-description-many.md b/tests/execution/test-description-many.md index 939bd05216..b061f27576 100644 --- a/tests/execution/test-description-many.md +++ b/tests/execution/test-description-many.md @@ -4,7 +4,7 @@ identity: true # test-description-many -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { query: Query } diff --git a/tests/execution/test-directives-undef-null-fields.md b/tests/execution/test-directives-undef-null-fields.md index 4197ab33fc..9f377da741 100644 --- a/tests/execution/test-directives-undef-null-fields.md +++ b/tests/execution/test-directives-undef-null-fields.md @@ -4,7 +4,7 @@ error: true # test-directives-undef-null-fields -```graphql @server +```graphql @config schema @server(vars: [{key: "a", value: "1"}, {key: "c", value: "d"}]) { query: Query } diff --git a/tests/execution/test-duplicated-link.md b/tests/execution/test-duplicated-link.md index 07fd961fde..8b29d32641 100644 --- a/tests/execution/test-duplicated-link.md +++ b/tests/execution/test-duplicated-link.md @@ -35,7 +35,7 @@ type Post { } ``` -```graphql @server +```graphql @config schema @link(type: Config, src: "jsonplaceholder.graphql", id: "placeholder") @link(type: Config, src: "jsonplaceholder.graphql", id: "placeholder1") diff --git a/tests/execution/test-empty-link.md b/tests/execution/test-empty-link.md index 35967b4da1..480c1615b2 100644 --- a/tests/execution/test-empty-link.md +++ b/tests/execution/test-empty-link.md @@ -4,7 +4,7 @@ error: true # test-empty-link -```graphql @server +```graphql @config schema @upstream(baseURL: "https://jsonplaceholder.typicode.com") @link(type: Config, src: "") @link(type: Config) { query: Query } diff --git a/tests/execution/test-enum-default.md b/tests/execution/test-enum-default.md index ce8a1e161f..7ebe4a92cf 100644 --- a/tests/execution/test-enum-default.md +++ b/tests/execution/test-enum-default.md @@ -28,7 +28,7 @@ message NewsList { } ``` -```graphql @server +```graphql @config # for test upstream server see [repo](https://github.com/tailcallhq/rust-grpc) schema @server(port: 8080) diff --git a/tests/execution/test-enum-description.md b/tests/execution/test-enum-description.md index d7bf473f93..32045d6734 100644 --- a/tests/execution/test-enum-description.md +++ b/tests/execution/test-enum-description.md @@ -4,7 +4,7 @@ identity: true # test-enum-description -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://localhost:8080") { query: Query } diff --git a/tests/execution/test-enum-empty.md b/tests/execution/test-enum-empty.md index 6e4744c34e..346dcef16d 100644 --- a/tests/execution/test-enum-empty.md +++ b/tests/execution/test-enum-empty.md @@ -4,7 +4,7 @@ error: true # test-enum-empty -```json @server +```json @config { "server": {}, "upstream": { diff --git a/tests/execution/test-enum-merge.md b/tests/execution/test-enum-merge.md index fa3acbac34..37f624198d 100644 --- a/tests/execution/test-enum-merge.md +++ b/tests/execution/test-enum-merge.md @@ -1,6 +1,6 @@ # test-enum-merge -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { query: Query } @@ -15,7 +15,7 @@ type Query { } ``` -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { query: Query } diff --git a/tests/execution/test-enum.md b/tests/execution/test-enum.md index 3a6b596ac9..e09b2a45a1 100644 --- a/tests/execution/test-enum.md +++ b/tests/execution/test-enum.md @@ -4,7 +4,7 @@ identity: true # test-enum -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://localhost:8080") { query: Query } diff --git a/tests/execution/test-expr-error.md b/tests/execution/test-expr-error.md index 9afb3dc1b0..ab27b9a519 100644 --- a/tests/execution/test-expr-error.md +++ b/tests/execution/test-expr-error.md @@ -4,7 +4,7 @@ error: true # test-expr-error -```graphql @server +```graphql @config schema @server @upstream(baseURL: "https://jsonplaceholder.typicode.com") { query: Query } diff --git a/tests/execution/test-expr-with-add-field.md b/tests/execution/test-expr-with-add-field.md index 9937ae60d5..678a7cef9a 100644 --- a/tests/execution/test-expr-with-add-field.md +++ b/tests/execution/test-expr-with-add-field.md @@ -4,7 +4,7 @@ error: true # test-expr-with-add-field -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") { query: Query } diff --git a/tests/execution/test-expr-with-inline.md b/tests/execution/test-expr-with-inline.md index 205ce4362f..d1ca322a5a 100644 --- a/tests/execution/test-expr-with-inline.md +++ b/tests/execution/test-expr-with-inline.md @@ -4,7 +4,7 @@ error: true # test-expr-with-inline -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") { query: Query } diff --git a/tests/execution/test-expr-with-mustache.md b/tests/execution/test-expr-with-mustache.md index 289e63d8cf..71fa826d4a 100644 --- a/tests/execution/test-expr-with-mustache.md +++ b/tests/execution/test-expr-with-mustache.md @@ -1,6 +1,6 @@ # Test expr with mustache -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/test-expr.md b/tests/execution/test-expr.md index 3f9ac816d2..dc633248fa 100644 --- a/tests/execution/test-expr.md +++ b/tests/execution/test-expr.md @@ -4,7 +4,7 @@ identity: true # test-expr -```graphql @server +```graphql @config schema @server @upstream { query: Query } diff --git a/tests/execution/test-field-already-implemented-from-Interface.md b/tests/execution/test-field-already-implemented-from-Interface.md index afc8cba817..3bde65e8e9 100644 --- a/tests/execution/test-field-already-implemented-from-Interface.md +++ b/tests/execution/test-field-already-implemented-from-Interface.md @@ -4,7 +4,7 @@ error: true # test-field-already-implemented-from-Interface -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/test-graphqlsource-no-base-url.md b/tests/execution/test-graphqlsource-no-base-url.md index ddf3032a4e..ff34233c55 100644 --- a/tests/execution/test-graphqlsource-no-base-url.md +++ b/tests/execution/test-graphqlsource-no-base-url.md @@ -4,7 +4,7 @@ error: true # test-graphqlsource-no-base-url -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/test-graphqlsource.md b/tests/execution/test-graphqlsource.md index 1ee90051d1..65b2cfbdc5 100644 --- a/tests/execution/test-graphqlsource.md +++ b/tests/execution/test-graphqlsource.md @@ -4,7 +4,7 @@ identity: true # test-graphqlsource -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://localhost:8000/graphql") { query: Query } diff --git a/tests/execution/test-groupby-without-batching.md b/tests/execution/test-groupby-without-batching.md index 69a7a67aa1..ee73ea2176 100644 --- a/tests/execution/test-groupby-without-batching.md +++ b/tests/execution/test-groupby-without-batching.md @@ -4,7 +4,7 @@ error: true # test-groupby-without-batching -```graphql @server +```graphql @config schema @upstream(baseURL: "http://jsonplaceholder.typicode.com", httpCache: true) { query: Query } diff --git a/tests/execution/test-grpc-group-by.md b/tests/execution/test-grpc-group-by.md index 1cbd951ff0..b494c2a01d 100644 --- a/tests/execution/test-grpc-group-by.md +++ b/tests/execution/test-grpc-group-by.md @@ -40,7 +40,7 @@ message NewsList { } ``` -```graphql @server +```graphql @config schema @server(port: 8000) @upstream(httpCache: true, batch: {delay: 10}) diff --git a/tests/execution/test-grpc-invalid-method-format.md b/tests/execution/test-grpc-invalid-method-format.md index 6e6b7b9bbc..abee73580c 100644 --- a/tests/execution/test-grpc-invalid-method-format.md +++ b/tests/execution/test-grpc-invalid-method-format.md @@ -4,7 +4,7 @@ error: true # test-grpc-invalid-method-format -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/test-grpc-invalid-proto-id.md b/tests/execution/test-grpc-invalid-proto-id.md index bfc75c0feb..4927ce1e1e 100644 --- a/tests/execution/test-grpc-invalid-proto-id.md +++ b/tests/execution/test-grpc-invalid-proto-id.md @@ -4,7 +4,7 @@ error: true # test-grpc-invalid-proto-id -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/test-grpc-missing-fields.md b/tests/execution/test-grpc-missing-fields.md index 51f92e2b11..cc03251c62 100644 --- a/tests/execution/test-grpc-missing-fields.md +++ b/tests/execution/test-grpc-missing-fields.md @@ -40,7 +40,7 @@ message NewsList { } ``` -```graphql @server +```graphql @config schema @link(id: "news", src: "news.proto", type: Protobuf) { query: Query } diff --git a/tests/execution/test-grpc-nested-data.md b/tests/execution/test-grpc-nested-data.md index 03e77d4fdd..69f2b13db0 100644 --- a/tests/execution/test-grpc-nested-data.md +++ b/tests/execution/test-grpc-nested-data.md @@ -40,7 +40,7 @@ message NewsList { } ``` -```graphql @server +```graphql @config schema @server(port: 8000) @upstream(httpCache: true, batch: {delay: 10}) diff --git a/tests/execution/test-grpc-nested-optional.md b/tests/execution/test-grpc-nested-optional.md index 08a384cfdd..795dedc5e5 100644 --- a/tests/execution/test-grpc-nested-optional.md +++ b/tests/execution/test-grpc-nested-optional.md @@ -40,7 +40,7 @@ message NewsList { } ``` -```graphql @server +```graphql @config schema @link(id: "news", src: "news.proto", type: Protobuf) { query: Query } diff --git a/tests/execution/test-grpc-optional.md b/tests/execution/test-grpc-optional.md index e5800ad373..c6640bb8b9 100644 --- a/tests/execution/test-grpc-optional.md +++ b/tests/execution/test-grpc-optional.md @@ -40,7 +40,7 @@ message NewsList { } ``` -```graphql @server +```graphql @config schema @link(id: "news", src: "news.proto", type: Protobuf) { query: Query } diff --git a/tests/execution/test-grpc-proto-path.md b/tests/execution/test-grpc-proto-path.md index bdb7a4a24f..f6495105d8 100644 --- a/tests/execution/test-grpc-proto-path.md +++ b/tests/execution/test-grpc-proto-path.md @@ -4,7 +4,7 @@ error: true # test-grpc-proto-path -```graphql @server +```graphql @config schema @link(id: "news", src: "tailcall/src/grpcnews.proto", type: Protobuf) { query: Query } diff --git a/tests/execution/test-grpc-service-method.md b/tests/execution/test-grpc-service-method.md index 4c806595e7..3cdcc0deb2 100644 --- a/tests/execution/test-grpc-service-method.md +++ b/tests/execution/test-grpc-service-method.md @@ -40,7 +40,7 @@ message NewsList { } ``` -```graphql @server +```graphql @config schema @link(id: "news", src: "news.proto", type: Protobuf) { query: Query } diff --git a/tests/execution/test-grpc-service.md b/tests/execution/test-grpc-service.md index 85549b2013..7c309085c2 100644 --- a/tests/execution/test-grpc-service.md +++ b/tests/execution/test-grpc-service.md @@ -40,7 +40,7 @@ message NewsList { } ``` -```graphql @server +```graphql @config schema @link(id: "news", src: "news.proto", type: Protobuf) { query: Query } diff --git a/tests/execution/test-grpc.md b/tests/execution/test-grpc.md index a676774bbf..f59cdf8df3 100644 --- a/tests/execution/test-grpc.md +++ b/tests/execution/test-grpc.md @@ -40,7 +40,7 @@ message NewsList { } ``` -```graphql @server +```graphql @config schema @server(port: 8000) @upstream(baseURL: "http://localhost:50051", batch: {delay: 10, headers: [], maxSize: 1000}) diff --git a/tests/execution/test-hostname-faliure.md b/tests/execution/test-hostname-faliure.md index 8fa02a96e0..642822c10a 100644 --- a/tests/execution/test-hostname-faliure.md +++ b/tests/execution/test-hostname-faliure.md @@ -4,7 +4,7 @@ error: true # test-hostname-faliure -```graphql @server +```graphql @config schema @server(hostname: "abc") { query: Query } diff --git a/tests/execution/test-http-baseurl.md b/tests/execution/test-http-baseurl.md index 85b33c1bf0..aa2d1660f2 100644 --- a/tests/execution/test-http-baseurl.md +++ b/tests/execution/test-http-baseurl.md @@ -4,7 +4,7 @@ identity: true # test-http-baseurl -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://abc.com") { query: Query } diff --git a/tests/execution/test-http-headers.md b/tests/execution/test-http-headers.md index 337280cdfb..3478aa9a6f 100644 --- a/tests/execution/test-http-headers.md +++ b/tests/execution/test-http-headers.md @@ -4,7 +4,7 @@ identity: true # test-http-headers -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://localhost:4000") { query: Query } diff --git a/tests/execution/test-http-tmpl.md b/tests/execution/test-http-tmpl.md index f9cbfd5265..3897b3b761 100644 --- a/tests/execution/test-http-tmpl.md +++ b/tests/execution/test-http-tmpl.md @@ -4,7 +4,7 @@ identity: true # test-http-tmpl -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { query: Query } diff --git a/tests/execution/test-http-with-add-field.md b/tests/execution/test-http-with-add-field.md index 1b99b7898f..64ce932f30 100644 --- a/tests/execution/test-http-with-add-field.md +++ b/tests/execution/test-http-with-add-field.md @@ -4,7 +4,7 @@ error: true # test-http-with-add-field -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") { query: Query } diff --git a/tests/execution/test-http-with-inline.md b/tests/execution/test-http-with-inline.md index 46636bbf3f..5df1233b04 100644 --- a/tests/execution/test-http-with-inline.md +++ b/tests/execution/test-http-with-inline.md @@ -4,7 +4,7 @@ error: true # test-http-with-inline -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") { query: Query } diff --git a/tests/execution/test-http-with-mustache-expr.md b/tests/execution/test-http-with-mustache-expr.md index e549128f7b..b38dce601f 100644 --- a/tests/execution/test-http-with-mustache-expr.md +++ b/tests/execution/test-http-with-mustache-expr.md @@ -1,6 +1,6 @@ # Test expr with mustache -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/test-http.md b/tests/execution/test-http.md index 5d975db4b6..379a49aecc 100644 --- a/tests/execution/test-http.md +++ b/tests/execution/test-http.md @@ -4,7 +4,7 @@ identity: true # test-http -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { query: Query } diff --git a/tests/execution/test-inline-error.md b/tests/execution/test-inline-error.md index c01c20be7b..0f9cff3528 100644 --- a/tests/execution/test-inline-error.md +++ b/tests/execution/test-inline-error.md @@ -4,7 +4,7 @@ error: true # test-inline-error -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/test-inline-list.md b/tests/execution/test-inline-list.md index 25d6086a86..76642d7759 100644 --- a/tests/execution/test-inline-list.md +++ b/tests/execution/test-inline-list.md @@ -4,7 +4,7 @@ identity: true # test-inline-list -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { query: Query } diff --git a/tests/execution/test-inline.md b/tests/execution/test-inline.md index a8345c95ab..92b7f4dc67 100644 --- a/tests/execution/test-inline.md +++ b/tests/execution/test-inline.md @@ -4,7 +4,7 @@ identity: true # test-inline -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { query: Query } diff --git a/tests/execution/test-interface-from-json.md b/tests/execution/test-interface-from-json.md index 6ffb5f9c92..4ae926dc57 100644 --- a/tests/execution/test-interface-from-json.md +++ b/tests/execution/test-interface-from-json.md @@ -1,6 +1,6 @@ # Interfaces defined in json -```json @server +```json @config { "upstream": { "baseURL": "http://jsonplaceholder.typicode.com" diff --git a/tests/execution/test-interface-result.md b/tests/execution/test-interface-result.md index 77f58d5ac8..968a3d34f6 100644 --- a/tests/execution/test-interface-result.md +++ b/tests/execution/test-interface-result.md @@ -4,7 +4,7 @@ identity: true # test-interface-result -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { query: Query } diff --git a/tests/execution/test-interface.md b/tests/execution/test-interface.md index 05a4b89b1c..313906d7e4 100644 --- a/tests/execution/test-interface.md +++ b/tests/execution/test-interface.md @@ -4,7 +4,7 @@ identity: true # test-interface -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { query: Query } diff --git a/tests/execution/test-invalid-query-in-http.md b/tests/execution/test-invalid-query-in-http.md index 05cb8525d0..9255af50f1 100644 --- a/tests/execution/test-invalid-query-in-http.md +++ b/tests/execution/test-invalid-query-in-http.md @@ -4,7 +4,7 @@ error: true # test-invalid-query-in-http -```graphql @server +```graphql @config schema @server(vars: [{key: "id", value: "1"}]) { query: Query } diff --git a/tests/execution/test-invalid-server.md b/tests/execution/test-invalid-server.md index 35c476bb78..ca556bb200 100644 --- a/tests/execution/test-invalid-server.md +++ b/tests/execution/test-invalid-server.md @@ -4,7 +4,7 @@ error: true # test-invalid-server -```graphql @server +```graphql @config schema @server(port: "8000") { query: Query } diff --git a/tests/execution/test-js-multiple-scripts.md b/tests/execution/test-js-multiple-scripts.md index a9a6491357..c2c023a452 100644 --- a/tests/execution/test-js-multiple-scripts.md +++ b/tests/execution/test-js-multiple-scripts.md @@ -12,7 +12,7 @@ function onRequest(request) {} function onRequest(request) {} ``` -```graphql @server +```graphql @config schema @server @link(type: Script, src: "test1.js") @link(type: Script, src: "test2.js") { query: Query } diff --git a/tests/execution/test-js-request-response-2.md b/tests/execution/test-js-request-response-2.md index 30ede242c7..3ea571ab6d 100644 --- a/tests/execution/test-js-request-response-2.md +++ b/tests/execution/test-js-request-response-2.md @@ -24,7 +24,7 @@ function onRequest({request}) { } ``` -```graphql @server +```graphql @config schema @server @link(type: Script, src: "test.js") { query: Query } diff --git a/tests/execution/test-js-request-response.md b/tests/execution/test-js-request-response.md index 9e61ecf008..09d59c465c 100644 --- a/tests/execution/test-js-request-response.md +++ b/tests/execution/test-js-request-response.md @@ -22,7 +22,7 @@ function onRequest({request}) { } ``` -```graphql @server +```graphql @config schema @server @link(type: Script, src: "test.js") { query: Query } diff --git a/tests/execution/test-lack-resolver.md b/tests/execution/test-lack-resolver.md index 39893bf482..0f22079737 100644 --- a/tests/execution/test-lack-resolver.md +++ b/tests/execution/test-lack-resolver.md @@ -4,7 +4,7 @@ error: true # test-lack-resolver -```graphql @server +```graphql @config schema @server(port: 8000) @upstream(baseURL: "http://jsonplaceholder.typicode.com") { query: Query } diff --git a/tests/execution/test-merge-batch.md b/tests/execution/test-merge-batch.md index 38b56583c6..875b222da7 100644 --- a/tests/execution/test-merge-batch.md +++ b/tests/execution/test-merge-batch.md @@ -1,6 +1,6 @@ # test-merge-batch -```graphql @server +```graphql @config schema @server @upstream(batch: {delay: 0, maxSize: 1000, headers: ["a", "b"]}) { query: Query } @@ -10,7 +10,7 @@ type Query { } ``` -```graphql @server +```graphql @config schema @server @upstream(batch: {delay: 5, maxSize: 100, headers: ["b", "c"]}) { query: Query } @@ -20,7 +20,7 @@ type Query { } ``` -```graphql @server +```graphql @config schema @server @upstream { query: Query } diff --git a/tests/execution/test-merge-nested.md b/tests/execution/test-merge-nested.md index 987a0512bb..75fe73e4ac 100644 --- a/tests/execution/test-merge-nested.md +++ b/tests/execution/test-merge-nested.md @@ -1,6 +1,6 @@ # test-merge-nested -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://abc.com") { query: Query } @@ -17,7 +17,7 @@ type Foo { } ``` -```graphql @server +```graphql @config schema @server { query: Query } diff --git a/tests/execution/test-merge-query.md b/tests/execution/test-merge-query.md index 90c35862a9..0f424842a5 100644 --- a/tests/execution/test-merge-query.md +++ b/tests/execution/test-merge-query.md @@ -1,6 +1,6 @@ # test-merge-query -```graphql @server +```graphql @config schema @server(port: 3000) @upstream(baseURL: "http://abc.com") { query: Query } @@ -10,7 +10,7 @@ type Query { } ``` -```graphql @server +```graphql @config schema @server(port: 8000) @upstream(proxy: {url: "http://localhost:3000"}) { query: Query } diff --git a/tests/execution/test-merge-right-with-link-config.md b/tests/execution/test-merge-right-with-link-config.md index 4d3b3eea8f..ac3d4e561f 100644 --- a/tests/execution/test-merge-right-with-link-config.md +++ b/tests/execution/test-merge-right-with-link-config.md @@ -6,7 +6,7 @@ type Foo { } ``` -```graphql @server +```graphql @config schema @upstream(allowedHeaders: ["Authorization"]) @link(src: "stripe-types.graphql", type: Config) { query: Query } diff --git a/tests/execution/test-merge-server-sdl.md b/tests/execution/test-merge-server-sdl.md index a259542b3e..4468051544 100644 --- a/tests/execution/test-merge-server-sdl.md +++ b/tests/execution/test-merge-server-sdl.md @@ -1,6 +1,6 @@ # test-merge-server-sdl -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { query: Query } diff --git a/tests/execution/test-merge-union.md b/tests/execution/test-merge-union.md index ac90d9ebb9..7c63c15b49 100644 --- a/tests/execution/test-merge-union.md +++ b/tests/execution/test-merge-union.md @@ -1,6 +1,6 @@ # test-merge-union -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { query: Query } @@ -20,7 +20,7 @@ type Query { } ``` -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { query: Query } diff --git a/tests/execution/test-missing-argument-on-all-resolvers.md b/tests/execution/test-missing-argument-on-all-resolvers.md index ef6ad59ce5..cc5992906c 100644 --- a/tests/execution/test-missing-argument-on-all-resolvers.md +++ b/tests/execution/test-missing-argument-on-all-resolvers.md @@ -40,7 +40,7 @@ message NewsList { } ``` -```graphql @server +```graphql @config schema @upstream(baseURL: "http://jsonplaceholder.typicode.com") @link(id: "news", src: "news.proto", type: Protobuf) { query: Query } diff --git a/tests/execution/test-missing-mutation-resolver.md b/tests/execution/test-missing-mutation-resolver.md index d4df5ff5ed..2c6dc4a704 100644 --- a/tests/execution/test-missing-mutation-resolver.md +++ b/tests/execution/test-missing-mutation-resolver.md @@ -4,7 +4,7 @@ error: true # test-missing-mutation-resolver -```graphql @server +```graphql @config schema { query: Query mutation: Mutation diff --git a/tests/execution/test-missing-query-resolver.md b/tests/execution/test-missing-query-resolver.md index 166d420538..c19168fe30 100644 --- a/tests/execution/test-missing-query-resolver.md +++ b/tests/execution/test-missing-query-resolver.md @@ -4,7 +4,7 @@ error: true # test-missing-query-resolver -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/test-missing-root-types.md b/tests/execution/test-missing-root-types.md index a654fb509c..637c00706b 100644 --- a/tests/execution/test-missing-root-types.md +++ b/tests/execution/test-missing-root-types.md @@ -4,7 +4,7 @@ error: true # test-missing-root-types -```graphql @server +```graphql @config schema { query: QueryType mutation: MutationDef diff --git a/tests/execution/test-missing-schema-query.md b/tests/execution/test-missing-schema-query.md index 36174fcd1b..92c4030d26 100644 --- a/tests/execution/test-missing-schema-query.md +++ b/tests/execution/test-missing-schema-query.md @@ -4,7 +4,7 @@ error: true # test-missing-schema-query -```graphql @server +```graphql @config schema { mutation: Mutation } diff --git a/tests/execution/test-modify.md b/tests/execution/test-modify.md index bbb9f3d108..7d1722cd08 100644 --- a/tests/execution/test-modify.md +++ b/tests/execution/test-modify.md @@ -4,7 +4,7 @@ identity: true # test-modify -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { query: Query } diff --git a/tests/execution/test-multi-interface.md b/tests/execution/test-multi-interface.md index a7b064d489..13fb0aff1c 100644 --- a/tests/execution/test-multi-interface.md +++ b/tests/execution/test-multi-interface.md @@ -4,7 +4,7 @@ identity: true # test-multi-interface -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { query: Query } diff --git a/tests/execution/test-multiple-resolvable-directives-on-field.md b/tests/execution/test-multiple-resolvable-directives-on-field.md index 70810b7676..a1286804cb 100644 --- a/tests/execution/test-multiple-resolvable-directives-on-field.md +++ b/tests/execution/test-multiple-resolvable-directives-on-field.md @@ -4,7 +4,7 @@ error: true # test-multiple-resolvable-directives-on-field -```graphql @server +```graphql @config schema @server @upstream(baseURL: "https://jsonplaceholder.typicode.com") { query: Query } diff --git a/tests/execution/test-nested-input.md b/tests/execution/test-nested-input.md index 3c452a7fce..b4cf9150d3 100644 --- a/tests/execution/test-nested-input.md +++ b/tests/execution/test-nested-input.md @@ -4,7 +4,7 @@ identity: true # test-nested-input -```graphql @server +```graphql @config schema @server @upstream { query: Query } diff --git a/tests/execution/test-nested-link.md b/tests/execution/test-nested-link.md index 907bfd2b2d..6b2c2f0b23 100644 --- a/tests/execution/test-nested-link.md +++ b/tests/execution/test-nested-link.md @@ -40,7 +40,7 @@ type User { } ``` -```graphql @server +```graphql @config schema @server @upstream @link(src: "graphql-with-link.graphql", type: Config) { query: Query } diff --git a/tests/execution/test-nested-value.md b/tests/execution/test-nested-value.md index 000f28aa74..3e45185610 100644 --- a/tests/execution/test-nested-value.md +++ b/tests/execution/test-nested-value.md @@ -4,7 +4,7 @@ identity: true # test-nested-value -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { query: Query } diff --git a/tests/execution/test-no-base-url.md b/tests/execution/test-no-base-url.md index 0b464c2c90..595eb74657 100644 --- a/tests/execution/test-no-base-url.md +++ b/tests/execution/test-no-base-url.md @@ -4,7 +4,7 @@ error: true # test-no-base-url -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/test-null-in-array.md b/tests/execution/test-null-in-array.md index 1ec038ebe2..f77fb4d6b0 100644 --- a/tests/execution/test-null-in-array.md +++ b/tests/execution/test-null-in-array.md @@ -1,6 +1,6 @@ # Empty Array Response -```graphql @server +```graphql @config schema @server { query: Query } diff --git a/tests/execution/test-null-in-object.md b/tests/execution/test-null-in-object.md index a356b1f3be..da55574d31 100644 --- a/tests/execution/test-null-in-object.md +++ b/tests/execution/test-null-in-object.md @@ -1,6 +1,6 @@ # Empty Object Response -```graphql @server +```graphql @config schema @server { query: Query } diff --git a/tests/execution/test-omit-list.md b/tests/execution/test-omit-list.md index 278c3f8443..f41a62d17c 100644 --- a/tests/execution/test-omit-list.md +++ b/tests/execution/test-omit-list.md @@ -4,7 +4,7 @@ identity: true # test-omit-list -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { query: Query } diff --git a/tests/execution/test-omit.md b/tests/execution/test-omit.md index c01e5b8fbd..1cf4a916ce 100644 --- a/tests/execution/test-omit.md +++ b/tests/execution/test-omit.md @@ -4,7 +4,7 @@ identity: true # test-omit -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { query: Query } diff --git a/tests/execution/test-params-as-body.md b/tests/execution/test-params-as-body.md index 98aa8a661f..5d44bd62fa 100644 --- a/tests/execution/test-params-as-body.md +++ b/tests/execution/test-params-as-body.md @@ -1,6 +1,6 @@ # Http with args as body -```graphql @server +```graphql @config schema @server(port: 8000) @upstream(baseURL: "http://jsonplaceholder.typicode.com") { query: Query } diff --git a/tests/execution/test-query-documentation.md b/tests/execution/test-query-documentation.md index eafadba8d8..952e587e56 100644 --- a/tests/execution/test-query-documentation.md +++ b/tests/execution/test-query-documentation.md @@ -4,7 +4,7 @@ identity: true # test-query-documentation -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { query: Query } diff --git a/tests/execution/test-query.md b/tests/execution/test-query.md index 25ff876d38..e3dae6d8c4 100644 --- a/tests/execution/test-query.md +++ b/tests/execution/test-query.md @@ -4,7 +4,7 @@ identity: true # test-query -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { query: Query } diff --git a/tests/execution/test-ref-other.md b/tests/execution/test-ref-other.md index 2c6c8f444c..5d5377e532 100644 --- a/tests/execution/test-ref-other.md +++ b/tests/execution/test-ref-other.md @@ -4,7 +4,7 @@ identity: true # test-ref-other -```graphql @server +```graphql @config schema @server(port: 8000) @upstream(baseURL: "http://jsonplaceholder.typicode.com") { query: Query } diff --git a/tests/execution/test-response-header-merge.md b/tests/execution/test-response-header-merge.md index a5364ff797..2c7697401e 100644 --- a/tests/execution/test-response-header-merge.md +++ b/tests/execution/test-response-header-merge.md @@ -1,6 +1,6 @@ # test-response-header-value -```graphql @server +```graphql @config schema @server(headers: {custom: [{key: "a", value: "a"}]}) { query: Query } @@ -15,7 +15,7 @@ type Query { } ``` -```graphql @server +```graphql @config schema @server(headers: {custom: [{key: "a", value: "b"}]}) { query: Query } diff --git a/tests/execution/test-response-header-value.md b/tests/execution/test-response-header-value.md index 42e6c36590..804493af78 100644 --- a/tests/execution/test-response-header-value.md +++ b/tests/execution/test-response-header-value.md @@ -4,7 +4,7 @@ error: true # test-response-header-value -```graphql @server +```graphql @config schema @server(headers: {custom: [{key: "a", value: "a \n b"}]}) { query: Query } diff --git a/tests/execution/test-response-headers-multi.md b/tests/execution/test-response-headers-multi.md index 9eb4b3dfd6..8c16b1965c 100644 --- a/tests/execution/test-response-headers-multi.md +++ b/tests/execution/test-response-headers-multi.md @@ -4,7 +4,7 @@ error: true # test-response-headers-multi -```graphql @server +```graphql @config schema @server(headers: {custom: [{key: "a b", value: "a \n b"}, {key: "a c", value: "a \n b"}]}) { query: Query } diff --git a/tests/execution/test-response-headers-name.md b/tests/execution/test-response-headers-name.md index a4cad1f5ed..387a6e1791 100644 --- a/tests/execution/test-response-headers-name.md +++ b/tests/execution/test-response-headers-name.md @@ -4,7 +4,7 @@ error: true # test-response-headers-name -```graphql @server +```graphql @config schema @server(headers: {custom: [{key: "🤣", value: "a"}]}) { query: Query } diff --git a/tests/execution/test-scalars.md b/tests/execution/test-scalars.md index 50f585d165..82283c0302 100644 --- a/tests/execution/test-scalars.md +++ b/tests/execution/test-scalars.md @@ -1,6 +1,6 @@ # test-scalar-email -```graphql @server +```graphql @config # this is already defined scalars in tailcall scalar Email diff --git a/tests/execution/test-server-base-types.md b/tests/execution/test-server-base-types.md index b61b774fd7..81a3a795b0 100644 --- a/tests/execution/test-server-base-types.md +++ b/tests/execution/test-server-base-types.md @@ -1,6 +1,6 @@ # test-server-base-types -```graphql @server +```graphql @config schema @server(port: 3000) @upstream(baseURL: "http://abc.com") { query: Query } @@ -10,7 +10,7 @@ type Query { } ``` -```graphql @server +```graphql @config schema @server(port: 8000) @upstream(proxy: {url: "http://localhost:3000"}) { query: Query } diff --git a/tests/execution/test-server-vars.md b/tests/execution/test-server-vars.md index 05f42be64b..252f37d93b 100644 --- a/tests/execution/test-server-vars.md +++ b/tests/execution/test-server-vars.md @@ -4,7 +4,7 @@ identity: true # test-server-vars -```graphql @server +```graphql @config schema @server(vars: [{key: "foo", value: "bar"}]) @upstream(baseURL: "http://jsonplacheholder.typicode.com") { query: Query } diff --git a/tests/execution/test-set-cookie-headers.md b/tests/execution/test-set-cookie-headers.md index 7a0740a62b..0a59a12b3f 100644 --- a/tests/execution/test-set-cookie-headers.md +++ b/tests/execution/test-set-cookie-headers.md @@ -1,6 +1,6 @@ # Set Cookie Header -```graphql @server +```graphql @config schema @server(port: 8080, hostname: "0.0.0.0", headers: {setCookies: true}) @upstream(baseURL: "http://jsonplaceholder.typicode.com") { diff --git a/tests/execution/test-static-value.md b/tests/execution/test-static-value.md index a36d245d1e..067aeb4989 100644 --- a/tests/execution/test-static-value.md +++ b/tests/execution/test-static-value.md @@ -1,6 +1,6 @@ # Static value -```json @server +```json @config { "server": {}, "upstream": {}, diff --git a/tests/execution/test-tag.md b/tests/execution/test-tag.md index ef8e6dafef..69aa02a18f 100644 --- a/tests/execution/test-tag.md +++ b/tests/execution/test-tag.md @@ -4,7 +4,7 @@ identity: true # test-tag -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { query: Query } diff --git a/tests/execution/test-undefined-query.md b/tests/execution/test-undefined-query.md index 8194f0e304..22267c3568 100644 --- a/tests/execution/test-undefined-query.md +++ b/tests/execution/test-undefined-query.md @@ -4,7 +4,7 @@ error: true # test-undefined-query -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { query: Query } diff --git a/tests/execution/test-union.md b/tests/execution/test-union.md index 068ff67514..341b9dc9de 100644 --- a/tests/execution/test-union.md +++ b/tests/execution/test-union.md @@ -4,7 +4,7 @@ identity: true # test-union -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplacheholder.typicode.com") { query: Query } diff --git a/tests/execution/test-upstream-headers.md b/tests/execution/test-upstream-headers.md index 2c57085d70..b36c2aa678 100644 --- a/tests/execution/test-upstream-headers.md +++ b/tests/execution/test-upstream-headers.md @@ -1,6 +1,6 @@ # test-upstream-headers -```graphql @server +```graphql @config schema @upstream(baseURL: "http://jsonplaceholder.typicode.com", allowedHeaders: ["x-foo", "X-bar"]) { query: Query } diff --git a/tests/execution/test-upstream.md b/tests/execution/test-upstream.md index c5e7ffa0a2..a00bd85656 100644 --- a/tests/execution/test-upstream.md +++ b/tests/execution/test-upstream.md @@ -4,7 +4,7 @@ identity: true # test-upstream -```graphql @server +```graphql @config schema @server @upstream(proxy: {url: "http://localhost:8085"}) { query: Query } diff --git a/tests/execution/undeclared-type-no-base-url.md b/tests/execution/undeclared-type-no-base-url.md index 161a46ab1c..7095b15385 100644 --- a/tests/execution/undeclared-type-no-base-url.md +++ b/tests/execution/undeclared-type-no-base-url.md @@ -4,7 +4,7 @@ error: true # undeclared-type-no-base-url -```graphql @server +```graphql @config schema @server { query: Query } diff --git a/tests/execution/undeclared-type.md b/tests/execution/undeclared-type.md index 8f43d0faff..abe1af80ed 100644 --- a/tests/execution/undeclared-type.md +++ b/tests/execution/undeclared-type.md @@ -4,7 +4,7 @@ error: true # undeclared-type -```graphql @server +```graphql @config schema @server { query: Query } diff --git a/tests/execution/upstream-batching.md b/tests/execution/upstream-batching.md index b5a782fafa..92276a7dd5 100644 --- a/tests/execution/upstream-batching.md +++ b/tests/execution/upstream-batching.md @@ -1,6 +1,6 @@ # Sending requests to be batched by the upstream server -```json @server +```json @config { "server": {}, "upstream": { diff --git a/tests/execution/upstream-fail-request.md b/tests/execution/upstream-fail-request.md index fa3e1bc1be..73d20dcd15 100644 --- a/tests/execution/upstream-fail-request.md +++ b/tests/execution/upstream-fail-request.md @@ -1,6 +1,6 @@ # Simple GraphQL Request -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/with-args-url.md b/tests/execution/with-args-url.md index 0ad9853fc3..d38147f920 100644 --- a/tests/execution/with-args-url.md +++ b/tests/execution/with-args-url.md @@ -1,6 +1,6 @@ # With args URL -```json @server +```json @config { "server": {}, "upstream": { diff --git a/tests/execution/with-args.md b/tests/execution/with-args.md index 06cd07b479..1fad4e79ba 100644 --- a/tests/execution/with-args.md +++ b/tests/execution/with-args.md @@ -1,6 +1,6 @@ # With args -```graphql @server +```graphql @config schema { query: Query } diff --git a/tests/execution/with-nesting.md b/tests/execution/with-nesting.md index 120d3674d5..2711fe5382 100644 --- a/tests/execution/with-nesting.md +++ b/tests/execution/with-nesting.md @@ -1,6 +1,6 @@ # With nesting -```graphql @server +```graphql @config schema @server @upstream(baseURL: "http://jsonplaceholder.typicode.com") { query: Query }