twenty/packages/twenty-server/test/integration/twenty-config/utils/create-config-variable.query-factory.util.ts
Félix Malfait 8b59fcaea7
Remove preconstruct, update wyw (#13844)
To simplify our setup, moving back to Vite to build twenty-shared.

Also upgrading wyw

---------

Co-authored-by: prastoin <paul@twenty.com>
2025-08-12 12:43:35 +02:00

24 lines
551 B
TypeScript

import { gql } from 'apollo-server-core';
import { type ConfigVariableValue } from 'twenty-shared/types';
export type CreateConfigVariableFactoryInput = {
key: string;
value: ConfigVariableValue;
};
export const createConfigVariableQueryFactory = ({
key,
value,
}: CreateConfigVariableFactoryInput) => {
return {
query: gql`
mutation CreateDatabaseConfigVariable($key: String!, $value: JSON!) {
createDatabaseConfigVariable(key: $key, value: $value)
}
`,
variables: {
key,
value,
},
};
};