diff --git a/spec/Section 2 -- Source Schema.md b/spec/Section 2 -- Source Schema.md index 8055611..efef681 100644 --- a/spec/Section 2 -- Source Schema.md +++ b/spec/Section 2 -- Source Schema.md @@ -41,7 +41,7 @@ as entities. ```graphql example extend type Query { - entityById(id: ID!, categoryId: Int): Entity @entityResolver + entityById(id: ID!, categoryId: Int): Entity @lookup } union Entity = Cat | Dog @@ -57,6 +57,22 @@ extend type Cat { } ``` +.... + +```graphql example +extend type Query { + lookups: Lookups! +} + +type Lookups { + personById(id: ID!): Person @lookup +} + +extend type Person { + id: ID! # matches the argument of personById +} +``` + ### @is ```graphql