1.2.0 • Published 2 years ago

soql-restful-api-query-builder v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Salesforce SOQL Restful API Query Builder SDK

const producer = FactoryProducer.getFactory('search');
const searchQuery = producer.getQueryBuilder('SEARCH_QUERY')!;
const query = searchQuery.buildQuery({
  type: 'SELECT',
  fields: ['Id', 'Name'],
  object: 'Opportunity',
  filter: {
    type: 'AND',
    expression: [
      {
        field: 'StageName',
        operator: '=',
        value: "'Closed Won'",
      },
      {
        field: 'ExpectedRevenue',
        operator: '>=',
        value: 50000,
      },
    ],
  },
  limit: 50,
});

console.info(query);
1.2.0

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago