romil
12/20/2022, 8:02 AMvroldanbet
12/20/2022, 10:53 AMdefinition
are deleted on your WriteSchema call, and checks if there are any relationships associated with any of the `relation`s in that definition
romil
12/21/2022, 6:05 AM{
"code": 5,
"message": "No schema has been defined; please call WriteSchema to start",
"details": []
}
@vroldanbet @Joeyvroldanbet
12/21/2022, 11:21 AMromil
12/21/2022, 12:06 PMvroldanbet
12/21/2022, 12:29 PMromil
12/21/2022, 4:19 PMcurl --location --request POST 'http://localhost:8443/v1/schema/write' \
--header 'Authorization: Bearer graphToken' \
--header 'Content-Type: application/json' \
--data-raw '{
"schemaText": "definition authznamespace/namespace {}\n\ndefinition authznamespace/user {}"
}'
Any reason why write of above schema via rest api is not working ? [Note, rest api response is 200 ]
@vroldanbetJoey
12/21/2022, 4:21 PMschema_text
schema
romil
12/21/2022, 4:22 PMschemaText
schemaText
schema
romil
12/21/2022, 4:23 PMJoey
12/21/2022, 4:24 PMromil
12/21/2022, 4:24 PM