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