Skip to content

Commit

Permalink
More newlines in @uniqueid example documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamn committed Mar 14, 2018
1 parent 41ddc71 commit 37dd034
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/source/schema-directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,12 +449,14 @@ declare @uniqueID(
# Which fields to include in the new ID:
from: [String] = ["id"]
) on OBJECT
# Since this type just uses the default values of name and from,
# we don't have to pass any arguments to the directive:
type Location @uniqueID {
id: Int
address: String
}
# This type uses both the person's name and the personID field,
# in addition to the "Person" type name, to construct the ID:
type Person @uniqueID(from: ["name", "personID"]) {
Expand Down

0 comments on commit 37dd034

Please sign in to comment.