This error does not give much helpful information to debug.
{
"message": "Failed to fetch",
"stack": "TypeError: Failed to fetch"
}
We created a type on Slash and ran a mutation and loaded 29K nodes (I think, still can’t count nodes in graphql) Then we found some data problems and need to drop the data in that type and rerun the import mutation.
mutation {
deleteMyType(filter: {}) { numUids }
}
which resulted in the response above.
I modified the type to add an index on string field that has mostly the same value to get rid of a big chunk of the data with @search(by: [exact])
and then ran the following mutation:
mutation {
deleteMyType(filter: {post_status: {eq: "Posted"}}) { numUids }
}
and this resulted with the same response above.
Is there any other way to data in a type when something in there is corrupting the delete mutation from running?
FYI, we have modified the schema back and forth several times for this type.
Thinking I may have to run some DQL to just delete by dgraph.type upsert mutation