directus-dart
directus-dart copied to clipboard
`sdk.fields` doesn't work with new api
fields.readOne throws an error saying 'List should use DirectusListResponse.'
Someone else opened similar issue. Does readOne
returns List
or Map
?
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