-
I ran the generator on the swapi, as follows:
I started a new project, and included the above generated file, and typed the following code:
And:
I'm getting the following compiler error:
Looking at the generated code, it states the following extension:
However, it also states:
So I wrote out all lines with explicit types, to make sure I understood the error:
The compiler complains at the
I don't really understand what's going on here. Why must the I have the feeling that I'm overlooking something. What's going on? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
From the top of my head, I think you need to make your query nullable. let query = Objects.Root.starship(selection: starshipSelection.nullable)
client.query(query) If you check the error you are getting
It's saying that the TypeLock should be nullable but yours is not (the |
Beta Was this translation helpful? Give feedback.
From the top of my head, I think you need to make your query nullable.
If you check the error you are getting
It's saying that the TypeLock should be nullable but yours is not (the
Objects.Starship
vsObjects.Starship?
).