Skip to content
This repository was archived by the owner on Mar 29, 2025. It is now read-only.

Commit f000a8f

Browse files
EronWrightryanfoxtyler
andauthoredJul 16, 2024··
Docs(GraphQL): Fix typo "directory" vs "directive" (#671)
<!-- Title: Please use the following format for your PR title: topic(area): details - The "topic" should be one of the following: Docs, Nav or Chore - The "area" is the feature (i.e., "GraphQL"), area of the docs (i.e., "Deployment"), or "Other" (for typo fixes and other bug-fix PRs). Sample Titles: Docs(GraphQL): Document the @deprecated annotation Chore(Other): cherry-pick updates from main to release/v20.11 Description: Please include the following in your PR description: 1. A brief, clear description of the change. 2. Link to any related PRs or discuss.dgraph.io posts. 3. If this PR corresponds to a JIRA issue, include "Fixes DOC-###" in the PR description. 3. If this is a breaking change, please put "[Breaking]" in the title. In the description, please put a note with exactly who these changes are breaking for. 4. If you are creating a PR in `main` and you know it needs to be cherry-picked to a release branch, please mention that in your PR description (for example: "cherry-pick to v20.07"). Cherry-pick PRs should reference the original PR. Note: Create and edit docs in the `main` branch when you can, so that we only cherry-pick out of `main`, not into `main`. --> Fixes a minor typo in the documentation. Co-authored-by: Ryan Fox-Tyler <60440289+ryanfoxtyler@users.noreply.github.com>
1 parent 9e1bb62 commit f000a8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎content/graphql/schema/types.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ GraphQL interfaces allow you to define a generic pattern that multiple types fol
127127

128128
According to GraphQL specifications, you can have the same fields in implementing types as the interface. In such cases, the GraphQL layer will generate the correct Dgraph schema without duplicate fields.
129129

130-
If you repeat a field name in a type, it must be of the same type (including list or scalar types), and it must have the same nullable condition as the interface's field. Note that if the interface's field has a directory like `@search` then it will be inherited by the implementing type's field.
130+
If you repeat a field name in a type, it must be of the same type (including list or scalar types), and it must have the same nullable condition as the interface's field. Note that if the interface's field has a directive like `@search` then it will be inherited by the implementing type's field.
131131

132132
For example:
133133

0 commit comments

Comments
 (0)
This repository has been archived.