Closed xanderelsmith closed 1 year ago
Please has anyone worked with a parse backend?
I'm having issues with removing an object from a relation oh, im using a parse backend named back4app, having issues with remving a data in a relation
the code
ParseRelation relation = courseData.getRelation('linkedquiz'); if (contains == true) { print('hi'); relation.getQuery(); relation.remove(snapshot.data![index]); CustomWidgets.styledSnackBar( context: context, message: 'Successfully removed');
the error
_CastError (type '_Map<String, dynamic>' is not a subtype of type 'ParseRelation?' in type cast)
Resolved updates are in the latest version
Please has anyone worked with a parse backend?
I'm having issues with removing an object from a relation oh, im using a parse backend named back4app, having issues with remving a data in a relation
the code
ParseRelation relation =
courseData.getRelation('linkedquiz');
if (contains == true) {
print('hi');
relation.getQuery();
relation.remove(snapshot.data![index]);
CustomWidgets.styledSnackBar(
context: context, message: 'Successfully removed');
the error
_CastError (type '_Map<String, dynamic>' is not a subtype of type 'ParseRelation?' in type cast)