import { enumType , inputObjectType } from 'nexus' ; export const SortOrder = enumType ( { name : 'SortOrder' , description : 'Sort direction for filtering queries (ascending or descending)' , members : [ 'asc' , 'desc' ] , } ) ; export const StringFilter = inputObjectType ( { name : 'StringFilter' , description : 'A way to filter string fields. Meant to pass to prisma where clause' , definition ( t ) { t . string ( 'contains' ) ; t . string ( 'endsWith' ) ; t . string ( 'equals' ) ; t . string ( 'gt' ) ; t . string ( 'gte' ) ; t . list . nonNull . string ( 'in' ) ; t . string ( 'lt' ) ; t . string ( 'lte' ) ; t . list . nonNull . string ( 'notIn' ) ; t . string ( 'startsWith' ) ; } , } ) ;