Sorry if this question is overly basic…I’m just getting started with GraphQL±.
I would like to delete all of these predicates from my schema:
{
"schema":[
{
"predicate":"name",
"type":"string"
},
{
"predicate":"revenue",
"type":"float"
},
{
"predicate":"starring",
"type":"uid"
},
{
"predicate":"release_date",
"type":"date",
"index":true,
"tokenizer":[
"date"
]
},
{
"predicate":"planet",
"type":"string"
},
{
"predicate":"director",
"type":"uid"
},
{
"predicate":"friend",
"type":"uid"
},
{
"predicate":"student",
"type":"uid"
},
]
}
I tried running a few variations of the “delete” syntax, for example:
mutation {
delete {
<planet> * * .
}
}
But haven’t been successful in deleting the schema predicates. Any help would be appreciated.
I could see needing to clear out unused schema in the future, but in my case I don’t have much data to lose. Thanks!