File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ which provides two main ways to set data: JSON and RDF N-Quad. You can choose
165
165
whichever way is convenient.
166
166
167
167
We're going to use JSON. First we define a ` Person ` class to represent a person.
168
- This data will be seralized into JSON.
168
+ This data will be serialized into JSON.
169
169
170
170
``` java
171
171
class Person {
@@ -416,7 +416,7 @@ instantiating the `DgraphAsyncClient` class. The usage is almost exactly the
416
416
same as the `DgraphClient ` (show in previous section) class. The main
417
417
differences is that the `DgraphAsyncClient #newTransacation()` returns an
418
418
`AsyncTransaction ` class. The API for `AsyncTransaction ` is exactly
419
- `Transcation `. The only difference is that instead of returning the results
419
+ `Transaction `. The only difference is that instead of returning the results
420
420
directly, it returns immediately with a corresponding `CompletableFuture<T > `
421
421
object. This object represents the computation which runs asynchronously to
422
422
yield the result in the future. Read more about `CompletableFuture<T > ` in the
@@ -428,11 +428,11 @@ Here is the asynchronous version of the code above, which runs a query.
428
428
429
429
```java
430
430
// Query
431
- String query =
431
+ String query =
432
432
" query all($a: string){\n " +
433
433
" all(func: eq(name, $a)) {\n " +
434
434
" name\n " +
435
- }\n" +
435
+ " }\n " +
436
436
" }\n " ;
437
437
438
438
Map<String , String > vars = Collections . singletonMap(" $a" , " Alice" );
You can’t perform that action at this time.
0 commit comments