Files
twenty/packages/twenty-server/test/integration/twenty-config/utils/update-config-variable.query-factory.util.ts
T
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

25 lines
551 B
TypeScript

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