Skip to content
Advertisement

Tag: graphql-codegen

Convert Maybe[]’ to ‘string[]

I am using graphql with generated types and struggling with how to convert them to the type I need to pass it to my data service calls. @graphql-codegen has given me an args type of (I don’t really understand why its generated as a Maybe type, as the graphql schema enforces that I only query with a parameter of an

Advertisement