deleteFact method Null safety

String deleteFact(
  1. String factId
)

Returns the graphQL mutation to delete a Fact by Fact.objectId.

Implementation

static String deleteFact(String factId) {
  // how to ensure that facts are not duplicated but changes
  // are still updated..??

  String ret = '''
mutation deleteAFact{
deleteFactcheck(
  input:{
    id: "$factId"
  }
  ){
  factcheck{
    fact
  }
}
}
''';
  return ret;
}