Removing Prisma and Grapql-nestjs-prisma resolvers (#2574)

* Some cleaning

* Fix seeds

* Fix all sign in, sign up flow and apiKey optimistic rendering

* Fix
This commit is contained in:
Charles Bochet
2023-11-19 18:25:47 +01:00
committed by GitHub
parent 18dac1a2b6
commit f5e1d7825a
616 changed files with 2220 additions and 23073 deletions

View File

@ -8,7 +8,7 @@ import { getViewScopedStateValuesFromSnapshot } from '@/views/utils/getViewScope
export const useViewFields = (viewScopeId: string) => {
const { updateOneMutation, createOneMutation, findManyQuery } =
useFindOneObjectMetadataItem({
objectNameSingular: 'viewFieldV2',
objectNameSingular: 'viewField',
});
const apolloClient = useApolloClient();

View File

@ -17,7 +17,7 @@ export const useViewFilters = (viewScopeId: string) => {
deleteOneMutation,
findManyQuery,
} = useFindOneObjectMetadataItem({
objectNameSingular: 'viewFilterV2',
objectNameSingular: 'viewFilter',
});
const apolloClient = useApolloClient();

View File

@ -17,7 +17,7 @@ export const useViewSorts = (viewScopeId: string) => {
deleteOneMutation,
findManyQuery,
} = useFindOneObjectMetadataItem({
objectNameSingular: 'viewSortV2',
objectNameSingular: 'viewSort',
});
const apolloClient = useApolloClient();

View File

@ -12,7 +12,7 @@ export const useViews = (scopeId: string) => {
deleteOneMutation,
findManyQuery,
} = useFindOneObjectMetadataItem({
objectNameSingular: 'viewV2',
objectNameSingular: 'view',
});
const apolloClient = useApolloClient();

View File

@ -55,6 +55,7 @@ export const useView = (props?: UseViewProps) => {
} = useViews(scopeId);
const [currentViewId, setCurrentViewId] = useRecoilState(currentViewIdState);
const setAvailableFieldDefinitions = useSetRecoilState(
availableFieldDefinitionsState,
);