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

MapIterator is not usable with graphqlite #165

Closed
Kharhamel opened this issue Oct 31, 2019 · 1 comment
Closed

MapIterator is not usable with graphqlite #165

Kharhamel opened this issue Oct 31, 2019 · 1 comment
Labels
additional info needed Additional information is needed to proceed

Comments

@Kharhamel
Copy link
Contributor

Since we can return ResultIterators to graphqlite, we should be able to return mapIterators too since they are specific resultIterators.

@moufmouf
Copy link
Member

moufmouf commented Nov 5, 2019

Not sure what you mean.

MapIterator is an iterator, so you need to tell GraphQLite the exact type in the @return annotation, but this should work.

Something like this should work:

/**
 * @Query
 * @return MapIterator|string[]
 */
public function test(): MapIterator

@oojacoboo oojacoboo added the additional info needed Additional information is needed to proceed label Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
additional info needed Additional information is needed to proceed
Projects
None yet
Development

No branches or pull requests

3 participants