brendanhay / gogol

A comprehensive Google Services SDK for Haskell.
Other
280 stars 105 forks source link

RunQueryResponse should be an array #145

Open lostbean opened 4 years ago

lostbean commented 4 years ago

Querying something on: https://firestore.googleapis.com/v1/projects/xxxxx/databases/(default)/documents:runQuery

returns this:

[ { "document": { "name": "projects/xxxxx/databases/(default)/documents/doc/000000000", "fields": { "lastUpdate": { ... } } ]

Which is a list of RunQueryResponses instead of the single one. I'm not sure if this patch is applied to the right place due the code generation but I couldn't figure out exactly where to do it. If someone can point me the correct direction, I'll update this PR.