gql-dart / gql

Libraries supporting GraphQL in Dart
MIT License
267 stars 121 forks source link

chore(vars-create-input): Adding Create Factories to Input types #451

Closed caffeineflo closed 6 months ago

caffeineflo commented 6 months ago

Hello 👋

it's the create factories guy again!

Since we've been busy using the create factories we've added a while back, we noticed that we must have forgotten to apply the same factories to input types doh This makes it hard using the create factories/initializer very hard since input types are kinda necessary to be covered when your Vars/Inputs go beyond simple value types.

This PR fixes that previous oversight and adds create factories to Input types.

I've added a unit test as well for completeness, but please let mw know if there are any questions on this! Thanks

knaeckeKami commented 6 months ago

Hi!

Thanks, this feature looks good to me!