The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import gql from 'graphql-tag';
import { VIEW_FIELD_GROUP_GQL_FIELDS } from 'test/integration/constants/view-gql-fields.constants';
export const findViewFieldGroupsQueryFactory = ({
gqlFields = VIEW_FIELD_GROUP_GQL_FIELDS,
viewId,
}: {
gqlFields?: string;
viewId: string;
}) => ({
query: gql`
query GetViewFieldGroups($viewId: String!) {
getViewFieldGroups(viewId: $viewId) {
${gqlFields}
}
}
`,
variables: {
viewId,
},
});