From a7c89c02efc50d13f190beb5dcf9568605f6b165 Mon Sep 17 00:00:00 2001 From: Greg MacWilliam Date: Sat, 11 May 2024 09:10:42 -0400 Subject: [PATCH] more README fixes --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 08a068f1..12acaac3 100644 --- a/README.md +++ b/README.md @@ -214,14 +214,14 @@ type Query { #### Multiple query arguments -Stitching infers which argument to use for queries with a single argument, or when the key name matches its intended argument. For queries that accept multiple arguments with unmatched names, the key should provide an argument mapping specified as `":"`. +Stitching infers which argument to use for queries with a single argument, or when the key name matches its intended argument. For queries that accept multiple arguments with unmatched names, the key should provide an argument alias specified as `":"`. ```graphql type Product { id: ID! } type Query { - product(by_id: ID, by_sku: ID): Product @stitch(key: "by_id:id") + product(byId: ID, bySku: ID): Product @stitch(key: "byId:id") } ``` @@ -294,7 +294,7 @@ sdl_string = <<~GRAPHQL } type Query { productById(id: ID!): Product - productByUpc(sku: ID!): Product + productBySku(sku: ID!): Product } GRAPHQL @@ -304,7 +304,7 @@ supergraph = GraphQL::Stitching::Composer.new.perform({ executable: ->() { ... }, stitch: [ { field_name: "productById", key: "id" }, - { field_name: "productByUpc", key: "sku" }, + { field_name: "productBySku", key: "sku" }, ] }, # ...