Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 16:43
    uniconstructor edited #4126
  • Jan 31 16:41
    uniconstructor edited #4126
  • Jan 31 16:41
    uniconstructor opened #4126
  • Jan 31 03:44
    dzungh0ang closed #4123
  • Jan 30 00:25
    techaks closed #4125
  • Jan 30 00:02
    techaks edited #4125
  • Jan 30 00:01
    techaks opened #4125
  • Jan 29 23:33
    jkpulido opened #4124
  • Jan 29 13:32
    nabdelgadir closed #4114
  • Jan 29 09:17

    bajtos on add-node10

    (compare)

  • Jan 29 07:13
    dzungh0ang opened #4123
  • Jan 29 04:25
    dhmlau closed #3881
  • Jan 28 13:14
    bajtos edited #4119
  • Jan 28 12:47
    bajtos labeled #4121
  • Jan 28 12:46
    bajtos labeled #4118
  • Jan 28 12:46
    bajtos labeled #4118
  • Jan 28 12:46
    bajtos labeled #4118
  • Jan 28 12:46
    bajtos assigned #4118
  • Jan 25 19:50
    dhmlau closed #3906
  • Jan 25 19:13
    mschnee synchronize #4119
salembenammar
@salembenammar
[2019-12-03T13:32:08.479Z] @firebase/database: FIREBASE FATAL ERROR: Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com
Cannot start the application. Error: Cannot initialize connector "loopback-connector-realtime-database": FIREBASE FATAL ERROR: Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com
@achrinza is there any else config to do ,
as i said in the beginning , the old config is working with my personal account
the problem was in after i change to the project account deicated
dedicated
Rifa Achrinza
@achrinza
@salembenammar I can't really pinpoint why the config worked with your personal account, but was the datasource.json created the same way stated on the project's Github page?
salembenammar
@salembenammar
Thanks to much @achrinza , its working now , the problem was not mentionned on the connector documentation
we must use variable without dashs
HaroldV
@hevillalobosccxc
Hi everybody
Sagar Maharjan
@sagar.mhrjn_gitlab
Can someone help me with this code . Empty pdf file is being generated
          fs.readFile('fb.pdf', function (err, stream) {
            if (err) return next(err);
            next(null, stream, 'application/octet-stream');
          });


 Visitor.remoteMethod(
    'exportChatScript', {
      http: { path: '/export', verb: 'get', },
      isStatic: true,
      returns: [
        { arg: 'body', type: 'file', root: true },
        { arg: 'Content-Type', type: 'string', http: { target: 'header' } }
      ],
      accepts: [
        { arg: 'req', type: 'object', 'http': { source: 'req' } },
        { arg: 'res', type: 'object', 'http': { source: 'res' } },

      ]
    }
  );
vikramkh
@vikramkh
Did anyone have problems when they allowed free form properties, and were gettin errors when trying CRUD operations such as Create/Update, with complains about 'not assignable to type 'DeepPartial<{modelname}>'?
If I remove the [props: string]: any from the model, the error goes away
vikramkh
@vikramkh
Also, is there any way I can make prop more specific?
BabyJ
@jtantwtr_twitter
@madaky Your sample codes do not work
Please advise further.
EugeneKopaev
@EugeneKopaev
guys anyone knows if it possible to inject lifecycle observer into service for example with @inject decorator or get from the app context in LB4
EugeneKopaev
@EugeneKopaev
I found :smile:
thomas gooch
@teafg
Hi everyone, I have a model containing and embedded model that has a one to one relationship (mongodb), and I am having trouble customizing a controller to find the parent object based on the supplied arg = embedded object
has anyone used filterBuilder before from loopback/repositories node module
thomas gooch
@teafg
does anyone have more information on creating custom filters and where clauses within a loopback program?
jomarocas
@jomarocas
hi @teafg is a example of a custom where clauses for filters, you need to connec to collection
  console.log(reaction.where)
  const reacciones = (this.reactionsRepository.dataSource.connector as any).collection("Reactions");
  var collection = await reacciones.aggregate(
    [
      {$match: reaction.where},
      {$group:{_id:"$reactionId", count:{$sum:1}}},
      {$sort:{"count":-1}}
    ]
  ).get();
this if for lb4
thomas gooch
@teafg
@jomarocas awesome thanks!!! I will work with this and try
madaky
@madaky
@jtantwtr_twitter : I reproduce the code , check it is working.... brief about the errors you are getting.
thomas gooch
@teafg
@jomarocas thanks so much, much easier to just reach into the MongoDB operations for customizing. THANKS
any chance anyone has a bit more info on instance introspection when working with MongoDB, save me a lot of time
thomas gooch
@teafg
Anyone have guidance on creating a fairly complex mongodb collection and using instance introspection in a boot script for loopback and have those models automated in creation?
jomarocas
@jomarocas
BabyJ
@jtantwtr_twitter
Hi all, is there anyway to make Loopback 3 churn out JWT token instead as access_token?
Arun Kumar
@arunkumar413
LB cli tool Vs api connect. What's the difference
Is api connect UI based and a paid version?
thomas gooch
@teafg
Has anyone performed instance-introspection? Creating models via a boot script against a mongodb collection
Diana Lau
@dhmlau
@arunkumar413 , i've asked clarification through google group :)
Are you referring to API Connect v5 or v2018?
@teafg , I'm not familiar with instance-introspection. Assuming you're using LB4, if you want to create a model during boot time, you can try observer: https://loopback.io/doc/en/lb4/Life-cycle.html. I have an article about the usage of observer for some other purpose. https://medium.com/loopback/loopback-quick-tip-seeding-database-using-life-cycle-observer-8ddca55fea5c.
I will definitely look into the article on medium
Diana Lau
@dhmlau
@teafg are you using LB3 or LB4?
thomas gooch
@teafg
@dhmlau I am using lb4 :smile: thanks so much for the time
Mark Injerd
@pilot51

I'm having trouble figuring out how to add a type attribute to a SOAP request in LB4.
This is what it is in a working request from a different application:

<change xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:fit_speed"/>

This is what I'm getting, which the SOAP API doesn't accept:

<ns1:change/>

Any ideas?

Mark Injerd
@pilot51
I need a solution to this in order to implement a top priority feature for a project at work. I have a meeting on Monday where I'm expected to have the feature done.
Diana Lau
@dhmlau
thomas gooch
@teafg
Hi everyone, still looking for the instance-introspection.js for creating classes via a boot script, and I’d be most appreciative
luispozoquerol
@luispozoquerol
Hi all i'm having troubles to understand lb4 doc in order to change standard port 3000, sorry i'm beginner. Someone that explain it in a simple way please?
madaky
@madaky
@luispozoquerol : Hi, in yuor index.js file at your root loopback application :
port: +(process.env.PORT || 3000), instead of 3000 put your desired port.
luispozoquerol
@luispozoquerol
@madaky thank you!!
luispozoquerol
@luispozoquerol
Hi, i need to implement
Hi I need to implement ssl in my lb4 project. Is there any link with doc/example about this topic?
luispozoquerol
@luispozoquerol
I've got pem and key files