2

GraphQL is an open source data query and manipulation language meant to provide a more efficient, powerful and flexible alternative to REST and ad-hoc web service architectures. In practice it acts as an abstraction layer between a client (web, mobile, etc) and a backend (REST or database). The intent is to unify and abstract all communication between these ...


1

Can we expect the Salesforce Mobile SDK to support a fairly recent version of React Native anytime soon? We don't know. Until/unless we see something in the release notes, we can make no assumptions about supporting a newer React version. You might ask this question of salesforce.com directly, but Support probably doesn't know any more than we do. Given ...


1

When you log in with the Mobile SDK, your auth callback will include an identity URL in the id attribute. It'll look something like https://login.salesforce.com/id/00D.../005.... You can then query this URL directly to get a ton of user details. You can read more about it in the documentation. There's no specific SOQL call you can use, but it's not necessary,...


1

Do you have any rows in your soup? A row that you would expect to "sync up" to salesforce should look like the following: { __local__: true, __locally_created__: true, __locally_updated__: false, __locally_deleted__: false, attributes: { type: 'MySObject__c' } } The important components here are __local__, __locally_created__, and ...


1

Ultimately, I opened tickets with Salesforce but didn't receive a solution as to why the Salesforce RN API calls weren't returning the appropriate file data, or why the same url was returning a blank response (well, technically just "1") in REST Explorer. We ended up using RNFS.downloadFile against the url (/services/data/v36.0/sobjects/ContentVersion/{...


1

I have an apex class that converts the file to base64, and returns that as the result. Salesforce does this for you already. If you query the ContentVersion SObject, the VersionData field will be returned to you as a Base64 Encoded Blob. Try using the query() method from the Salesforce React Native SDK to access this field directly.


1

Some functionality to handle this has been added in Mobile SDK v5.2. The docs on the website don't reflect this new functionality yet, but the PDF in the GitHub repository does. Ctrl+F for "ParentChildrenSyncDown" and "ParentChildrenSyncUp".


Only top voted, non community-wiki answers of a minimum length are eligible