Closed Spatel91111 closed 6 months ago
GraphQLNullable
is used for input types, so the field on the input type in your schema is probably [String]
and not [String!]
.
Hello @calvincestari , yes I have used status: [String] in schema but still getting issue
Create a sample app demonstrating the problem that we can look at please.
Hello @calvincestari
Schema
code
In the schema screenshot, flight_type: [String]
is a list of nullable strings. That is correctly generated into Swift as GraphQLNullable<[String?]>
. There is nothing wrong here.
flightTypeArray3
must be the same type (GraphQLNullable<[String?]>
) if you want to assign it.
Hello @calvincestari ,
If I used type (GraphQLNullable<[String?]>) then it's pass input value like [Optional("black")]
@calvincestari , is there any way to configure the file to add any setting value handle automatically?, then let me know.
If I used type (GraphQLNullable<[String?]>) then it's pass input value like [Optional("black")]
Is the JSON actually getting sent like that or only when you print it to the debug console?
is there any way to configure the file to add any setting value handle automatically?, then let me know.
I don't understand your question. A setting to handle what value? It is String?
because that's what the type is in your schema.
I'm closing this issue due to inactivity. If this is still unresolved, feel free to provide more information and we can re-open this, or create a new issue.
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo iOS usage and allow us to serve you better.
Question
If I used [String?] array with GraphQLNullable then it's passed request value like some([Optional("black")]) and that create issue I want to pass value some(["black", "black1"]) like this. How to remove GraphQLNullable<[String?]> and used GraphQLNullable<[String]>