From 37dd0343b60a6ffa26d364732588610589856e1a Mon Sep 17 00:00:00 2001 From: Ben Newman Date: Wed, 14 Mar 2018 19:33:34 -0400 Subject: [PATCH] More newlines in @uniqueID example documentation. --- docs/source/schema-directives.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/source/schema-directives.md b/docs/source/schema-directives.md index d9d42c511cf..4d77bb57bfa 100644 --- a/docs/source/schema-directives.md +++ b/docs/source/schema-directives.md @@ -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"]) {