Skip to content

Commit

Permalink
Simplify composite key example
Browse files Browse the repository at this point in the history
  • Loading branch information
gmac authored Nov 3, 2024
1 parent 55cfe37 commit 64a2e07
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ Resolver keys may make composite selections for multiple key fields and/or neste
```graphql
interface FieldOwner {
id: ID!
type: String!
}
type CustomField {
owner: FieldOwner!
Expand All @@ -314,8 +313,8 @@ input CustomFieldLookup {

type Query {
customFields(lookups: [CustomFieldLookup!]!): [CustomField]! @stitch(
key: "owner { id type } key",
arguments: "lookups: { ownerId: $.owner.id, ownerType: $.owner.type, key: $.key }"
key: "owner { id __typename } key",
arguments: "lookups: { ownerId: $.owner.id, ownerType: $.owner.__typename, key: $.key }"
)
}
```
Expand Down

0 comments on commit 64a2e07

Please sign in to comment.