Hello I am trying to create schema with few predicates and a type as mentioned below:
define directives and index
user_name: string @index(term) .
date_created: datetime .
date_modified: datetime .
verified_in: bool .
email_id: string .
contact_no: float .
define types
type user_master {
user_name
date_created
date_modified
verified_in
email_id
contact_no
creates_post
}
I am facing following error:
Message: while lexing # define directives and index creates_post: [uid] . user_name: string @index(term) . date_created: datetime . date_modified: datetime . verified_in: bool . email_id: string . contact_no: float . # define types type user_master { user_name date_created date_modified verified_in email_id contact_no creates_post } at line 2 column 0: Invalid block: [creates_post]
Raw Error:
{
"name": "t",
"url": "http://13.235.61.157:8080/mutate?commitNow=true",
"errors": [
{
"message": "while lexing # define directives and index\ncreates_post: [uid] .\nuser_name: string @index(term) .\ndate_created: datetime .\ndate_modified: datetime .\nverified_in: bool .\nemail_id: string .\ncontact_no: float .\n\n# define types\ntype user_master {\n\tuser_name\n\tdate_created\n\tdate_modified\n\tverified_in\n\temail_id\n\tcontact_no\n\tcreates_post\n} at line 2 column 0: Invalid block: [creates_post]",
"extensions": {
"code": "ErrorInvalidRequest"
}
}
]
}
Any idea if there is a syntactical issue?