Files
twenty/packages/twenty-front/src/testing/mockedApolloClient.ts
T
nitinandGitHub d2ddd6f473 Separate system operations from core objects in GraphQL endpoints (#12977)
Moves system-level operations (auth, billing, admin) to use the
/metadata endpoint instead of /graphql.

This cleans up the endpoint separation so /graphql is purely for core
objects (Company, People, etc.) and /metadata handles all system
operations.

Part of prep work for webhook/API key core migration.
2025-07-01 18:29:32 +02:00

7 lines
210 B
TypeScript

import { ApolloClient, InMemoryCache } from '@apollo/client';
export const mockedApolloClient = new ApolloClient({
uri: process.env.REACT_APP_SERVER_BASE_URL + '/metadata',
cache: new InMemoryCache(),
});