botobag / artemis

GraphQL implementation for Go
Other
10 stars 0 forks source link

[executor] Enumerate elements for a list value from custom iterator #156

Closed zonr closed 5 years ago

zonr commented 5 years ago

Currently, executor.ExecuteNodeTask.completeWrappingValue extracts element values for a list using reflection. This forces resolvers to convert values into an array or a slice before return. Allowing custom iterator to be provided from the value would save the memory copies.