You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a lot of code being copied over to idm from echo that is useful in both codebases (internal service modules, utility functions, etc). We'll move these into a standalone lg-toolbox module that will be published to npm (scoped to @LearnersGuild) and used in multiple codebases.
v1.0 spec:
services
dataService
crmService
jobService (merged w/ queueService)
Usage:
// in foo.jsimport{dataService}from'lg-toolbox'asyncfunctiondoAThing(){constrethinkdb={// object w/ connection props OR an existing `r` client
servers,
silent,
max,
buffer
}constoptions={
models,// path to directory or array
queries,// path to directory or array}constds=dataService(rethinkdb,options)const{r, MyModel, getAThing}fromdsconstthings=awaitCoolModel.filter(row=>{returnr.and(row('blah').eq(1),row('blergh').eq(5))})awaitgetAThing()}
There's a lot of code being copied over to
idm
from echo that is useful in both codebases (internal service modules, utility functions, etc). We'll move these into a standalonelg-toolbox
module that will be published to npm (scoped to @LearnersGuild) and used in multiple codebases.v1.0 spec:
Usage:
Object exported by
dataService()
:The text was updated successfully, but these errors were encountered: