codegen-for-async-graphql icon indicating copy to clipboard operation
codegen-for-async-graphql copied to clipboard

Support for required element inside array [Friend!]!

Open Farkal opened this issue 5 years ago • 3 comments

I saw this was on the test schema but it don't work on my scheme. Is it implemented ? I can try to help you implement this feature if you want !

Farkal avatar Jul 27 '20 10:07 Farkal

After taking look at the code it's just a recursive call that's missing. But i can't find where it should be :/ In the Render::struct_name_token function ? Or in the SupportType::nested_type_name function ? The error raised is from the SupportType::nested_type_name because we get List(NonNull(List(NonNull(Named("EnumCommentTestCase"))))) and this should generate a Vec<Option<Vec<Option<EnumCommentTestCase>>>>

Farkal avatar Jul 27 '20 15:07 Farkal

Would also love to have this. Do you (@Farkal) have this already implemented somewhere in your fork?

Weasy666 avatar Sep 07 '20 10:09 Weasy666

No sorry :disappointed: this lib is a codegen and it was missing other features so i just use it one time and edit all the code to solves the different issues. You can just remove the ! and the codegen will work :wink:

Farkal avatar Sep 07 '20 12:09 Farkal