zino-hofmann / graphql-flutter

A GraphQL client for Flutter, bringing all the features from a modern GraphQL client to one easy to use package.
https://zino-hofmann.github.io/graphql-flutter
MIT License
3.25k stars 620 forks source link

UUIDs/ID aren't formatted properly #1059

Closed widavies closed 2 years ago

widavies commented 2 years ago

Describe the issue When querying an ID type (backed by UUID), it seems as though the dashes are removed

// Correct
9dc1c7e8-6878-4116-bbd8-92ae25566934
// Returned from GraphQL-Flutter
9dc1c7e868784116bbd892ae25566934

Would it be possible to keep the dashes?

(In my specific case I'm using C# GraphQL library Hot Chocolate)

budde377 commented 2 years ago

I'd be very surprised if the client is performing any kind of manipulation of the returned result. We don't treat IDs any different.

Can you check your serialisation framework and double check the network result?

widavies commented 2 years ago

Ah yeah you're right, sorry about that. Somehow certain GraphQL requests return weird Ids and not others. Thanks!