david-plugge / typed-pocketbase

Add types to the PocketBase JavaScript SDK
MIT License
85 stars 10 forks source link

`multiple` relations (one to many) are not supported #11

Closed gBasil closed 1 year ago

gBasil commented 1 year ago

Currently, relations seem to only work for Single relations. rather than Multiple relations, as the relation is always singular instead of being an array for Multiple relations.

In other words, instead of being SomeResponse[], the codegen generates SomeResponse.

david-plugge commented 1 year ago

fixed in https://github.com/david-plugge/typed-pocketbase/commit/19bce54b2162757534cd9a436f56c0d36959ab4f (version 0.0.5)

david-plugge commented 1 year ago

use 0.0.6 instead, the actual record types were still wrong in 0.0.5

gBasil commented 1 year ago

Thank you so much for all of the really quick fixes!