Skip to content

Commit 6b7330c

Browse files
authored
Fix species typo in json.mdx (#122)
1 parent 71b80c3 commit 6b7330c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

dgraph/dql/json.mdx

+8-8
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ identifier, Dgraph creates only one node:
6161
},
6262
{
6363
"uid": "_:diggy",
64-
"specie": "badger"
64+
"species": "badger"
6565
}
6666
]
6767
}
@@ -81,7 +81,7 @@ that was created with the `diggy` identifier:
8181
}
8282
```
8383

84-
Note that the `specie` field is added to the node already created with `name`
84+
Note that the `species` field is added to the node already created with `name`
8585
and `dgraph.type` information.
8686

8787
### Referencing existing nodes
@@ -96,18 +96,18 @@ For example:
9696
"set": [
9797
{
9898
"uid": "0xfffd8d72745f0650",
99-
"specie": "badger"
99+
"species": "badger"
100100
}
101101
]
102102
}
103103
```
104104

105-
Adds the `specie` information to the node that was created earlier.
105+
Adds the `species` information to the node that was created earlier.
106106

107107
## Language support
108108

109109
To set a string value for a specific language, append the language tag to the
110-
field name. In case, `specie` predicate has the @lang directive, the JSON
110+
field name. In case, `species` predicate has the @lang directive, the JSON
111111
mutation
112112

113113
```dql
@@ -117,14 +117,14 @@ mutation
117117
"uid": "_:diggy",
118118
"name": "diggy",
119119
"dgraph.type": "Mascot",
120-
"specie@en" : "badger",
121-
"specie@fr" : "blaireau"
120+
"species@en" : "badger",
121+
"species@fr" : "blaireau"
122122
}
123123
]
124124
}
125125
```
126126

127-
Dgraph sets the `specie` string predicate in English and in French.
127+
Dgraph sets the `species` string predicate in English and in French.
128128

129129
## Geolocation support
130130

0 commit comments

Comments
 (0)