Scope server with workspace (#157)
* 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)
This commit is contained in:
@ -6,7 +6,7 @@ import { Company } from '../company/company.model';
|
||||
import { Person } from '../person/person.model';
|
||||
import { WorkspaceCount } from './workspace-count.output';
|
||||
|
||||
@ObjectType()
|
||||
@ObjectType({})
|
||||
export class Workspace {
|
||||
@Field(() => ID, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
Reference in New Issue
Block a user