Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

What is the Dart type for jsonb graphql type #410

Open
nkrmr opened this issue Apr 5, 2023 · 1 comment
Open

What is the Dart type for jsonb graphql type #410

nkrmr opened this issue Apr 5, 2023 · 1 comment
Labels
question Further information is requested

Comments

@nkrmr
Copy link

nkrmr commented Apr 5, 2023

       - 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 nkrmr added the bug Something isn't working label Apr 5, 2023
@vasilich6107 vasilich6107 added question Further information is requested and removed bug Something isn't working labels Apr 25, 2023
@nbourdin
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants