Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@mondomob/gae-js-gae-search
Advanced tools
SearchService implementation that uses the GAE Search API via the https://github.com/mondo-mob/gae-search-service GAE Search Service proxy.
This allows you to create data repositories that automatically index the data on mutation and then search against your stored entities.
npm install @mondomob/gae-js-storage
Step 1: Initialise and set GaeSearchService as the search provider
// Add module config schema to your app config schema
const configSchema = t.intersection([
gaeJsCoreConfigurationSchema,
gaeJsGaeSearchConfigurationSchema,
// Other module schemas
]);
// Add endpoint to your config file
{
"searchServiceEndpoint": "https://my-search-service.appspot.com"
}
// Set search provider on app startup
searchProvider.set(new GaeSearchService());
Step 2. Define your repository by extending SearchableRepository and providing your index configuration
class MyUserRepository extends SearchableRepository<User> {
constructor() {
super(new FirestoreRepository<User>("my-users"), {
indexName: "users",
indexConfig: {
// Use true to index the property as-is from the object
firstName: true,
// Or pass a function to run custom logic first on the data first
fullName: (value) => `${value.firstName} ${value.lastName}`,
},
});
}
}
Step 3. Use the repository
const userRepository = new MyUserRepository();
await userRepsitory.save({id: "123", firstName: "App", lastName: "Engine"});
const results = await userRepository.search({ firstName: "App"});
FAQs
Use Appengine Search Service
The npm package @mondomob/gae-js-gae-search receives a total of 26 weekly downloads. As such, @mondomob/gae-js-gae-search popularity was classified as not popular.
We found that @mondomob/gae-js-gae-search demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.