Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-level arrays are not supported #43

Closed
SirBif opened this issue Jan 25, 2017 · 1 comment
Closed

Multi-level arrays are not supported #43

SirBif opened this issue Jan 25, 2017 · 1 comment

Comments

@SirBif
Copy link

SirBif commented Jan 25, 2017

I have a data structure which contains an array of arrays of Double (e.g. a list of waypoints). When I try to compile I get the following error: "No 'list' candidates produce the expected contextual result type '[[Double]]'". This happens with version 0.4.3.

public struct Waypoints: GraphQLMappable {
          public let coordinates: [[Double]]

          public init(reader: GraphQLResultReader) throws {
            coordinates = try reader.list(for: Field(responseName: "coordinates"))
          }
}
@SirBif
Copy link
Author

SirBif commented Jan 27, 2017

That was fast. Thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant