The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { type AppPath } from 'twenty-shared/types';
export const buildAppPathWithQueryParams = (
path: AppPath,
queryParams: Record<string, string>,
) => {
const searchParams = [];
for (const [key, value] of Object.entries(queryParams)) {
searchParams.push(`${key}=${value}`);
}
return `${path}?${searchParams.join('&')}`;
};