'AWS datastorage does not show relations
I have the following question. I have a User table and a group table. Auser can have multiple groups.
I have made an relation between them and added some data. For some reason when i do:
DataStorage.query(Group)
it does not display me the groups field and i dont know why. What i am doing wrong. If you need more information please feel free to leave a comment thanks.
export declare class User {
readonly id: string;
readonly email?: string;
readonly groups?: (UserGroup | null)[];
readonly group_admin_ID?: string;
readonly profile_image?: string;
readonly createdAt?: string;
readonly updatedAt?: string;
constructor(init: ModelInit<User, UserMetaData>);
static copyOf(source: User, mutator: (draft: MutableModel<User, UserMetaData>) => MutableModel<User, UserMetaData> | void): User;
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
