Missing App42Storage in unity3d SDK, cannot do paging request

0 votes

Using Unity3d and the latest SDK, i am trying to get all the documents from a collection.
From the documentation i read :

var storageService  = new App42Storage();  

storageService.findAllDocumentsByPaging(dbName,collectionName,max,offset,{    

    success: function(object)   

    {    

        var storageObj = JSON.parse(object);    

        response = storageObj.app42.response.storage;  

        console.log("dbName is " + response.dbName)  

    },    

    error: function(error) {    

    }    

});

But this line is giving an error :  " var storageService  = new App42Storage(); " -- > The type or namespace App42Storage could not be found.

I do have :
using com.shephertz.app42.paas.sdk.csharp;
using com.shephertz.app42.paas.sdk.csharp.storage;

and all my other request are working , like the FindAllDocuments and UpdateDocument.

What am i missing ?

asked Jul 24, 2019 in Operations and Maintenance by romain (16 points)

1 Answer

0 votes
Hi Romain,

Apologies for the inconvinience caused.

Somehow we missed your query, now we have forwarded this query to our team, we will get back to you as soon as possible.

Regards,

App42 Team
answered Aug 16, 2019 by anonymous
Hi Romain,

Please use the below code and let us know if the issue still continues, we will be happy to help you.

Code:

var storageService  = new App42Storage();  
 
storageService.FindAllDocumentsByPaging(dbName,collectionName,max,offset,{    
 
    success: function(object)   
 
    {    
 
        var storageObj = JSON.parse(object);    
 
        response = storageObj.app42.response.storage;  
 
        console.log("dbName is " + response.dbName)  
 
    },    
 
    error: function(error) {    
 
    }    
 
});

Regards,
Priyanka Singh
App42 Team
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...