diff --git a/packages/graphql/lib/src/core/raw_operation_data.dart b/packages/graphql/lib/src/core/raw_operation_data.dart index 52e2f93a..e887903e 100644 --- a/packages/graphql/lib/src/core/raw_operation_data.dart +++ b/packages/graphql/lib/src/core/raw_operation_data.dart @@ -58,7 +58,8 @@ class RawOperationData { if (isIoFile(object)) { return object.path; } - return object; + // default toEncodable behavior + return object.toJson(); }); return '$document|$encodedVariables|$_identifier';