Skip to content

Commit 2743ad0

Browse files
Reverting type system changes from examples (#90)
1 parent 4f8191f commit 2743ad0

File tree

2 files changed

+0
-36
lines changed

2 files changed

+0
-36
lines changed

examples/simple/index.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,6 @@ async function dropAll(dgraphClient) {
2121
// Set schema.
2222
async function setSchema(dgraphClient) {
2323
const schema = `
24-
type Person {
25-
name
26-
age
27-
married
28-
loc
29-
dob
30-
friend
31-
school
32-
}
33-
34-
type School {
35-
name
36-
}
37-
3824
name: string @index(exact) .
3925
age: int .
4026
married: bool .
@@ -56,7 +42,6 @@ async function createData(dgraphClient) {
5642
const p = {
5743
uid: "_:alice",
5844
name: "Alice",
59-
"dgraph.type": "Person",
6045
age: 26,
6146
married: true,
6247
loc: {
@@ -67,19 +52,16 @@ async function createData(dgraphClient) {
6752
friend: [
6853
{
6954
name: "Bob",
70-
"dgraph.type": "Person",
7155
age: 24,
7256
},
7357
{
7458
name: "Charlie",
75-
"dgraph.type": "Person",
7659
age: 29,
7760
}
7861
],
7962
school: [
8063
{
8164
name: "Crown Public School",
82-
"dgraph.type": "School",
8365
}
8466
]
8567
};

examples/tls/index.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,6 @@ async function dropAll(dgraphClient) {
3333
// Set schema.
3434
async function setSchema(dgraphClient) {
3535
const schema = `
36-
type Person {
37-
name
38-
age
39-
married
40-
loc
41-
dob
42-
friend
43-
school
44-
}
45-
46-
type School {
47-
name
48-
}
49-
5036
name: string @index(exact) .
5137
age: int .
5238
married: bool .
@@ -68,7 +54,6 @@ async function createData(dgraphClient) {
6854
const p = {
6955
uid: "_:alice",
7056
name: "Alice",
71-
"dgraph.type": "Person",
7257
age: 26,
7358
married: true,
7459
loc: {
@@ -79,19 +64,16 @@ async function createData(dgraphClient) {
7964
friend: [
8065
{
8166
name: "Bob",
82-
"dgraph.type": "Person",
8367
age: 24,
8468
},
8569
{
8670
name: "Charlie",
87-
"dgraph.type": "Person",
8871
age: 29,
8972
}
9073
],
9174
school: [
9275
{
9376
name: "Crown Public School",
94-
"dgraph.type": "School",
9577
}
9678
]
9779
};

0 commit comments

Comments
 (0)