Loopback automigrate sample code generating NaN ‘mysql’

Using the automigrate sample code from near the end of the page at http://loopback.io/doc/en/lb3/Creating-a-database-schema-from-models.html  I received back the text

NaN 'mysql'

This turns out to be from the console.log line that includes ‘-‘ (minus) signs in the line

console.log('Loopback tables [' - lbTables - '] created in ', ds.adapter.name);

using instead ‘+’ signs as in the following seemed to work

console.log('Loopback tables [' + lbTables + '] created in ', ds.adapter.name);
Advertisements

1 Comment

Filed under Uncategorized

One response to “Loopback automigrate sample code generating NaN ‘mysql’

  1. P.K. Huang

    Oh my god, it works!!! You really save my life!!! thanks for your information!!!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s