rmosolgo/graphql-ruby

Incorrect Yarn doc: execute can return a Result, not only Hash

bmulholland opened this issue · 2 comments

# @return [Array<Hash>] One result per query
says returns array of hashes

But

results[idx] = query.result
means it can also return a Result element

(relevant because these docs are used for some auto-generation of types and editor features, and because it's used for reference in situations like Shopify/rbi-central#250)

Thanks for reporting this! I definitely want to generate the best types I can 🍻 Fix in the works at #4984

Awesome -- thanks for the clarity! I've updated the RBI to match over at rbi-central.