Skip to content

Conversation

slightfoot
Copy link
Contributor

@slightfoot slightfoot commented Aug 30, 2025

Description

If you used a Int64 type in the GraphQL schema it cannot be decoded in the generated code. Int64 is treated as a BigInt in Postgres/DataConnect and as such transmitted through gRPC as a String. The firebase_data_connect package throws This type is unimplemented: Type... because the nativeFromJson function does not support input being a String and the output type being an int.

This PR also fixes the incorrect Type display in the error message for the exception.

@maneesht this one's for you.

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (melos run analyze) does not report any problems on my PR.
  • I read and followed the Flutter Style Guide.
  • I signed the CLA.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change.
  • No, this is not a breaking change.

@slightfoot slightfoot force-pushed the fix/data_connect_int64_support branch from ebd7dca to 63c1afa Compare August 30, 2025 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant