directus-dart icon indicating copy to clipboard operation
directus-dart copied to clipboard

`sdk.fields` doesn't work with new api

Open reev-create opened this issue 2 years ago • 2 comments

fields.readOne throws an error saying 'List should use DirectusListResponse.'

reev-create avatar Jul 28 '22 15:07 reev-create

Someone else opened similar issue. Does readOne returns List or Map?

apstanisic avatar Aug 05 '22 14:08 apstanisic

There was a change in the API, or at least I didn't read spec correctly, see. Currently API tries to fetch fields with ID, but it's using :collection/:field endpoint

apstanisic avatar Jan 09 '23 21:01 apstanisic