You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For 3 option, it is possible to customize converter with sdk.users.converter = MyConverter();. Only make sure that return value extends DirectusUser or Dart will throw an exception.
Hi, I played around a little, and this is simplest solution I could think off.
I know it's not ideal, if anybody has time I am open to more proper solutions.
final sdk =awaitgetSdk();
final user =DirectusUser(
email:"[email protected]",
password:"password",
// this values are same as columns, they should not be camel cased
rawValues: {"test_value":"RawValue"});
final res =await sdk.users.createOne(user);
print(res.data.rawValues['test_value']);
I'm digging down a rabbit hole:
Is there a way to get a user object with custom fields? If not there should be. If yes can it be documented please.
The text was updated successfully, but these errors were encountered: