Find
Overview of taxonomy find method
get
https://api.codemash.io
/:version/db/taxonomies/:taxonomyName/terms
Find
.NET
Node
1
var client = new CodeMashClient(apiKey, projectId);
2
var service = new CodeMashRepository<Person>(client);
3
4
var persons = await service.FindAsync(
5
x => true,
6
new DatabaseFindOptions()
7
);
Copied!
Check the docs about entities on how the response records are deserialized into your class objects.
1
import { db } from 'codemash';
2
3
export async function getCountries() {
4
return await db.getTaxonomyTerms('countries');
5
}
6
7
export async function getCities() {
8
return await db.getTaxonomyTerms('cities');
9
}
Copied!
Check the docs on how to form projections, filters, sorting, paging. Check the docs on how to use references.
Copy link