Open bsoe003 opened 7 years ago
The purpose of QueryBuilder class is to convert URI/URL query key-values to Camo-acceptable options. Here's an example:
/companies?match=name>goo&show=name,location,logo
req
express
{ match: 'name>goo', show: 'name,location,logo', }
Camo
const result = await Company.find({ name: 'goo' }, { populate: ['name', 'location', 'logo'] });
Tasks:
query
{ name: 'goo' }
options
{ populate: ['name', 'location', 'logo'] }
Query Specs: TBD
Reference:
The purpose of QueryBuilder class is to convert URI/URL query key-values to Camo-acceptable options. Here's an example:
/companies?match=name>goo&show=name,location,logo
req
value grabbed byexpress
will convert the query to:Camo
statement:Tasks:
query
(e.g.{ name: 'goo' }
)options
(e.g.{ populate: ['name', 'location', 'logo'] }
)Query Specs: TBD
Reference: