mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-30 12:13:34 +00:00
Major additions: - Complete Next.js studio application with 1600+ components - Docker support (Dockerfile.combined, docker-compose.yml) - GCP deployment documentation and benchmarks - SQL benchmark scripts for performance testing - Sentry integration for monitoring - Comprehensive test suite and mocks Studio features: - Dashboard and admin interfaces - Data visualization components - Authentication and user management - API integration with RuVector backend - Static data and public assets 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
31 lines
1.6 KiB
TypeScript
31 lines
1.6 KiB
TypeScript
import * as types from './graphql'
|
|
|
|
/**
|
|
* Map of all GraphQL operations in the project.
|
|
*
|
|
* This map has several performance disadvantages:
|
|
* 1. It is not tree-shakeable, so it will include all operations in the project.
|
|
* 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.
|
|
* 3. It does not support dead code elimination, so it will add unused operations.
|
|
*
|
|
* Therefore it is highly recommended to use the babel or swc plugin for production.
|
|
* Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
|
|
*/
|
|
type Documents = {
|
|
'\n query ErrorCodeQuery($code: String!, $service: Service) {\n errors(code: $code, service: $service) {\n nodes {\n code\n service\n message\n }\n }\n }\n': typeof types.ErrorCodeQueryDocument
|
|
}
|
|
const documents: Documents = {
|
|
'\n query ErrorCodeQuery($code: String!, $service: Service) {\n errors(code: $code, service: $service) {\n nodes {\n code\n service\n message\n }\n }\n }\n':
|
|
types.ErrorCodeQueryDocument,
|
|
}
|
|
|
|
/**
|
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
*/
|
|
export function graphql(
|
|
source: '\n query ErrorCodeQuery($code: String!, $service: Service) {\n errors(code: $code, service: $service) {\n nodes {\n code\n service\n message\n }\n }\n }\n'
|
|
): typeof import('./graphql').ErrorCodeQueryDocument
|
|
|
|
export function graphql(source: string) {
|
|
return (documents as any)[source] ?? {}
|
|
}
|