Skip to content

Commit

Permalink
added upsert to the dgraph.xid predicate to ensure that each user and…
Browse files Browse the repository at this point in the history
… group can be created only once
  • Loading branch information
Lucas Wang committed Jan 14, 2019
1 parent e8e1a50 commit 6b71ae5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions worker/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ func (g *groupi) proposeInitialSchema() {
Predicate: "dgraph.xid",
ValueType: pb.Posting_STRING,
Directive: pb.SchemaUpdate_INDEX,
Upsert: true,
Tokenizer: []string{"exact"},
})

Expand Down

0 comments on commit 6b71ae5

Please sign in to comment.