artemis
artemis copied to clipboard
What is the Dart type for jsonb graphql type
- 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
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