Query Schema with Specific Type do not support other language?

schema(type:[人]){
  
}
"errors": [
    {
      "message": "while lexing schema(type:[人]){\n  \n} at line 1 column 13: Unrecognized character inside schema: U+4EBA '人'",
      "extensions": {
        "code": "ErrorInvalidRequest"
      }
    }
  ]
schema(type:[<人>]){
  
}
  "errors": [
    {
      "message": "while lexing schema(type:[<人>]){\n  \n} at line 1 column 13: Unrecognized character inside schema: U+003C '<'",
      "extensions": {
        "code": "ErrorInvalidRequest"
      }
    }
  ]

Try like

schema(type:[<人>])

This should work.

I’m using Dgraph v1.2.1

  "errors": [
    {
      "message": "while lexing schema(type:[<人>]) at line 1 column 13: Unrecognized character inside schema: U+003C '<'",
      "extensions": {
        "code": "ErrorInvalidRequest"
      }
    }
  ]

This doesn’t work too.

It works fine on the latest. I remember that these angular brackets were added a few months ago. Probably the version you are using hasn’t this fix.

1 Like