Skip to content

Commit

Permalink
Docs(GraphQL): Fix typo "directory" vs "directive" (#671)
Browse files Browse the repository at this point in the history
<!--
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 <[email protected]>
  • Loading branch information
EronWright and ryanfoxtyler authored Jul 16, 2024
1 parent 9e1bb62 commit f000a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/graphql/schema/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ GraphQL interfaces allow you to define a generic pattern that multiple types fol

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.

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.
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.

For example:

Expand Down

0 comments on commit f000a8f

Please sign in to comment.