Skip to content

No error is given when parsing malformed quads #117

@nii236

Description

@nii236

Hello!

I've been trying to set quads in dgraph, however it seems to allow whatever label I pass in! Here are some examples:

Triple

curl localhost:8080/query -XPOST -d 'mutation{ set { <alice> <follows> <bob> . }}'
{"code":"E_OK","message":"Done"}%

Quad

curl localhost:8080/query -XPOST -d 'mutation{ set { <alice> <follows> <bob> quad . }}'
{"code":"E_OK","message":"Done"}%

Pentagon

curl localhost:8080/query -XPOST -d 'mutation{ set { <alice> <follows> <bob> quad pentagon . }}'
{"code":"E_OK","message":"Done"}%

Hexagon After Dot

curl localhost:8080/query -XPOST -d 'mutation{ set { <alice> <follows> <bob> quad pentagon . hexagonafterdot}}'
{"code":"E_OK","message":"Done"}%

Metadata

Metadata

Assignees

Labels

kind/bugSomething is broken.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions