artemis icon indicating copy to clipboard operation
artemis copied to clipboard

What is the Dart type for jsonb graphql type

Open nkrmr opened this issue 1 year ago • 1 comments

       - graphql_type: jsonb
              dart_type: Map<String, dynamic>

I use this to get the Dart type from my Hasura database to the Graphql type jsonb, but my app crash !

Do you know wish scalar type I can use to do this?

Best regards

nkrmr avatar Apr 05 '23 09:04 nkrmr

Hello, you should try to use dynamic instead of Map<String, dynamic>, specially if you have an json array instead of json object in your graphql data result

nbourdin avatar May 10 '23 08:05 nbourdin