Skip to content

The open alternative to Salesforce, designed for AI.

537 B
Raw Blame
import { gql } from 'graphql-tag';

export type GetConfigVariableFactoryInput = {
  key: string;
};

export const getConfigVariableQueryFactory = ({
  key,
}: GetConfigVariableFactoryInput) => {
  return {
    query: gql`
      query GetDatabaseConfigVariable($key: String!) {
        getDatabaseConfigVariable(key: $key) {
          name
          description
          value
          isSensitive
          isEnvOnly
          type
          options
          source
        }
      }
    `,
    variables: {
      key,
    },
  };
};