mirror of
https://github.com/twentyhq/twenty
synced 2026-04-21 13:37:22 +00:00
To simplify our setup, moving back to Vite to build twenty-shared. Also upgrading wyw --------- Co-authored-by: prastoin <paul@twenty.com>
24 lines
551 B
TypeScript
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,
|
|
},
|
|
};
|
|
};
|