Skip to content

Commit

Permalink
Added more examples
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Apr 11, 2024
1 parent 14badaf commit f54f24a
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion spec/Section 2 -- Source Schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f54f24a

Please sign in to comment.