Quickly Build HTML5 and PhoneGap Mobile Apps

MongoLab Database Plug-in Is Now Available In Tiggzi

Posted: June 20th, 2012 | Author: | Filed under: API, Plugin | Tags: , | 2 Comments »

If you plan to use MongoLab database in your app, it’s now even simpler with our new MongoLab database plug-in. Here is how to create one.

Click to import a plug-in:

then select Mobile and click MongoDB Database API:

next you will be prompted to enter database API key and database name. Both values can be found in your MongoLab account:

If you don’t set these values during import, don’t worry. You can also set them in Services/MongoLab_Settings after the import.

In addition to API key and database name you also need to set the collection name (as we don’t have that information). The collection name is defined and set in Request Parameters panel:

In the Default Value column enter the collection name. You may also set the collection name directly in the URL. The reason collection name is set in request parameters and not in the settings file is because it will change often while the other values are most likely going to stay the same.

Once the service is imported, you can test the service and automatically create the response structure from it.


2 Comments on “MongoLab Database Plug-in Is Now Available In Tiggzi”

  1. 1 Dave said at 08:45 on June 27th, 2012:

    I don’t see how to query a collection for one specific document, by ID for example. In MongoDB’s documentation, they mention including a q= parameter in the URL, but I can’t make that work from tiggzi. Please advise.
    Thanks

  2. 2 max said at 09:35 on June 27th, 2012:

    @Dave: create q as a request parameter, similar to this: http://help.gotiggr.com/documentation/services/examples-connecting-to-mobile-back-ends/parse/queries

    If you have more questions, let’s take it to http://tiggzi.com/forum .


Leave a Reply


  • nine − = 8