Implement scoping on be (#144)
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { WorkspaceCreateWithoutCompaniesInput } from './workspace-create-without-companies.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { WorkspaceCreateOrConnectWithoutCompaniesInput } from './workspace-create-or-connect-without-companies.input';
|
||||
import { WorkspaceWhereUniqueInput } from './workspace-where-unique.input';
|
||||
|
||||
@InputType()
|
||||
export class WorkspaceCreateNestedOneWithoutCompaniesInput {
|
||||
|
||||
@Field(() => WorkspaceCreateWithoutCompaniesInput, {nullable:true})
|
||||
@Type(() => WorkspaceCreateWithoutCompaniesInput)
|
||||
create?: WorkspaceCreateWithoutCompaniesInput;
|
||||
|
||||
@Field(() => WorkspaceCreateOrConnectWithoutCompaniesInput, {nullable:true})
|
||||
@Type(() => WorkspaceCreateOrConnectWithoutCompaniesInput)
|
||||
connectOrCreate?: WorkspaceCreateOrConnectWithoutCompaniesInput;
|
||||
|
||||
@Field(() => WorkspaceWhereUniqueInput, {nullable:true})
|
||||
@Type(() => WorkspaceWhereUniqueInput)
|
||||
connect?: WorkspaceWhereUniqueInput;
|
||||
}
|
||||
Reference in New Issue
Block a user