3674365e6f
* Rename User to AuthUser to avoid naming conflict with user business entity * Prevent query by workspace in graphql * Make full user and workspace object available in graphql resolvers * Add Seed to create companies and people accross two workspace * Check workspace on all entities findMany, find, create, update)
34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
TypeScript
import { Field } from '@nestjs/graphql';
|
|
import { InputType } from '@nestjs/graphql';
|
|
import { SortOrder } from '../prisma/sort-order.enum';
|
|
import { HideField } from '@nestjs/graphql';
|
|
import { UserOrderByWithRelationInput } from '../user/user-order-by-with-relation.input';
|
|
import { WorkspaceOrderByWithRelationInput } from '../workspace/workspace-order-by-with-relation.input';
|
|
|
|
@InputType()
|
|
export class WorkspaceMemberOrderByWithRelationInput {
|
|
@Field(() => SortOrder, { nullable: true })
|
|
id?: keyof typeof SortOrder;
|
|
|
|
@Field(() => SortOrder, { nullable: true })
|
|
createdAt?: keyof typeof SortOrder;
|
|
|
|
@Field(() => SortOrder, { nullable: true })
|
|
updatedAt?: keyof typeof SortOrder;
|
|
|
|
@Field(() => SortOrder, { nullable: true })
|
|
deletedAt?: keyof typeof SortOrder;
|
|
|
|
@Field(() => SortOrder, { nullable: true })
|
|
userId?: keyof typeof SortOrder;
|
|
|
|
@HideField()
|
|
workspaceId?: keyof typeof SortOrder;
|
|
|
|
@Field(() => UserOrderByWithRelationInput, { nullable: true })
|
|
user?: UserOrderByWithRelationInput;
|
|
|
|
@HideField()
|
|
workspace?: WorkspaceOrderByWithRelationInput;
|
|
}
|