diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 792f433..c29a0d4 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -6,7 +6,7 @@
> postGraphQlQueryX(
+ String query, Map inpVariables) async {
+ try {
+ final options =
+ QueryOptions(document: gql(query), variables: inpVariables);
+ final QueryResult result = await graphql.query(options);
+
+ if (result.hasException) {
+ if (result.exception != null) {
+ if (result.exception!.graphqlErrors.isNotEmpty
+ is BaseRepositoryException) {
+ final error = result.exception!.graphqlErrors[0];
+ BaseRepositoryException exception =
+ result.exception!.linkException as BaseRepositoryException;
+ var errorMessage = exception.message;
+ print(errorMessage);
+ throw BaseRepositoryException(
+ message: errorMessage,
+ );
+ }
+ }
+ }
+
+ return result.data!;
+ } catch (e) {
+ throw BaseRepositoryException(message: e.toString());
+ }
+ }
+
// NATIVE POST PAKE DIO
Future