@@ -72,6 +72,21 @@ export const createFilesTypeDefs = (params: CreateFilesTypeDefsParams): string =
7272 } ) ;
7373
7474 return /* GraphQL */ `
75+ type FmLocation {
76+ folderId: String!
77+ }
78+
79+ input FmLocationInput {
80+ folderId: String!
81+ }
82+
83+ input FmLocationWhereInput {
84+ folderId: ID
85+ folderId_in: [ID!]
86+ folderId_not: ID
87+ folderId_not_in: [ID!]
88+ }
89+
7590 ${ fieldTypes . map ( f => f . typeDefs ) . join ( "\n" ) }
7691
7792 type FmFile {
@@ -82,6 +97,7 @@ export const createFilesTypeDefs = (params: CreateFilesTypeDefsParams): string =
8297 createdBy: FmCreatedBy!
8398 modifiedBy: FmCreatedBy
8499 savedBy: FmCreatedBy!
100+ location: FmLocation!
85101 src: String
86102 ${ fieldTypes . map ( f => f . fields ) . join ( "\n" ) }
87103 }
@@ -102,6 +118,7 @@ export const createFilesTypeDefs = (params: CreateFilesTypeDefsParams): string =
102118 createdBy: FmCreatedByInput
103119 modifiedBy: FmCreatedByInput
104120 savedBy: FmCreatedByInput
121+ location: FmLocationInput!
105122 ${ inputCreateFields . map ( f => f . fields ) . join ( "\n" ) }
106123 }
107124
@@ -112,6 +129,7 @@ export const createFilesTypeDefs = (params: CreateFilesTypeDefsParams): string =
112129 createdBy: FmCreatedByInput
113130 modifiedBy: FmCreatedByInput
114131 savedBy: FmCreatedByInput
132+ location: FmLocationInput
115133 ${ inputUpdateFields . map ( f => f . fields ) . join ( "\n" ) }
116134 }
117135
@@ -121,6 +139,7 @@ export const createFilesTypeDefs = (params: CreateFilesTypeDefsParams): string =
121139 }
122140
123141 input FmFileListWhereInput {
142+ location: FmLocationWhereInput
124143 ${ listFilterFieldsRender . allFiltersAsString ( ) }
125144 AND: [FmFileListWhereInput!]
126145 OR: [FmFileListWhereInput!]
0 commit comments