obrigado-react-admin-backend-utils
Version:
Helper utilities for react-admin graphql backend.
22 lines (20 loc) • 486 B
text/typescript
import { Field, Int, ObjectType } from "type-graphql";
("Administrator")
export class GQLAdministrator {
(type => Int)
id: number;
()
username: string;
({ nullable: true })
last_name: string;
({ nullable: true })
first_name: string;
({ nullable: true })
token: string;
(type => [String], { defaultValue: [] })
permissions: string[];
()
isBlocked: boolean;
({ nullable: true })
email: string;
}