Skip to content

Commit

Permalink
Add description strings to a test case
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Nov 6, 2023
1 parent 3cb5e94 commit 1ff6468
Show file tree
Hide file tree
Showing 3 changed files with 605 additions and 585 deletions.
11 changes: 11 additions & 0 deletions crates/apollo-compiler/test_data/ok/0015_supergraph.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ type Amazon {

union Body = Image | Text

"""
Usually made of pages
"""
type Book implements Product
@join__owner(graph: BOOKS)
@join__type(graph: BOOKS, key: "isbn")
Expand All @@ -31,9 +35,16 @@ type Book implements Product
{
isbn: String! @join__field(graph: BOOKS)
title: String @join__field(graph: BOOKS)
"""In the \"""Gregorian\""" calendar"""
year: Int @join__field(graph: BOOKS)
similarBooks: [Book]! @join__field(graph: BOOKS)
metadata: [MetadataOrError] @join__field(graph: BOOKS)
"""
\"""To be in stock or not to be in stock\"""
that is the question
"""
inStock: Boolean @join__field(graph: INVENTORY)
isCheckedOut: Boolean @join__field(graph: INVENTORY)
upc: String! @join__field(graph: PRODUCT)
Expand Down
Loading

0 comments on commit 1ff6468

Please sign in to comment.