Skip to content

Commit

Permalink
graphql: Fix mutation on predicate with special characters having dgr… (
Browse files Browse the repository at this point in the history
#5577)

* graphql: Fix mutation on predicate with special characters having dgraph directive. (#5526)

* Fix Dgraph directive for multiple languages.

(cherry picked from commit 92232c0)
(cherry picked from commit 829cbb0)
  • Loading branch information
Arijit Das committed Jul 6, 2020
1 parent 2beaf30 commit 9a318fa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions graphql/e2e/directives/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,8 @@ type Message {
content: String! @dgraph(pred: "post")
author: String @dgraph(pred: "<职业>")
}

type Message {
content: String! @dgraph(pred: "post")
author: String @dgraph(pred: "<职业>")
}
5 changes: 5 additions & 0 deletions graphql/resolve/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -229,3 +229,8 @@ type Y implements X @auth(
){
userRole: String @search(by: [hash])
}

type Message {
content: String! @dgraph(pred: "post")
author: String @dgraph(pred: "<职业>")
}
3 changes: 2 additions & 1 deletion graphql/schema/gqlschema_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1044,6 +1044,7 @@ invalid_schemas:
-
name: "@custom directive with undefined parameter in body"
input: |
<<<<<<< HEAD
type Author {
id: ID!
name: String
Expand Down Expand Up @@ -2582,4 +2583,4 @@ valid_schemas:
method: "POST",
body: "{sid: $id}"
})
}
}

0 comments on commit 9a318fa

Please sign in to comment.