As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
I have created a custom endpoint and it is supposed to return 10 kinvey entities just like KCSLinkedAppStore queries. However I get raw JSON objects that are not actual Kinvey Entities.
Please help as I think it's utterly important to be able to receive Kinvey entities from calling an endpoint.
activityCollection.find({"fromUser._id":forUserId, "type": "follow", "content" : "accepted"}, function (err, docs) {
if (err) {
logger.error('Query failed: '+ err);
response.error(err);
} else {
response.body = docs; // these should be Kinvey Entities, but instead it's a raw JSON
response.complete(200);
}
});
Best Answer
P
Pranav J
said
about 7 years ago
Grisha,
I have confirmed this with the engineering team.
Custom Endpoints are not attached to an Entity class, for that reason we don’t provide a built-in solution in this case. You can definitely create an init method (as discussed earlier) or a custom parser for this scenario, or use an object mapper library of your choice.
You can also explore the 3.x version of the SDK where it would be a little easier to do the conversion since there is a better object mapping support built into the library. http://devcenter.kinvey.com/ios-v3.0/downloads#
Custom Endpoints are not attached to an Entity class, for that reason we don’t provide a built-in solution in this case. You can definitely create an init method (as discussed earlier) or a custom parser for this scenario, or use an object mapper library of your choice.
You can also explore the 3.x version of the SDK where it would be a little easier to do the conversion since there is a better object mapping support built into the library. http://devcenter.kinvey.com/ios-v3.0/downloads#
Grisha Gevorkyan
I have created a custom endpoint and it is supposed to return 10 kinvey entities just like KCSLinkedAppStore queries. However I get raw JSON objects that are not actual Kinvey Entities.
Please help as I think it's utterly important to be able to receive Kinvey entities from calling an endpoint.
I have confirmed this with the engineering team.
Custom Endpoints are not attached to an Entity class, for that reason we don’t provide a built-in solution in this case. You can definitely create an init method (as discussed earlier) or a custom parser for this scenario, or use an object mapper library of your choice.
You can also explore the 3.x version of the SDK where it would be a little easier to do the conversion since there is a better object mapping support built into the library.
http://devcenter.kinvey.com/ios-v3.0/downloads#
Thanks,
Pranav
Kinvey Support
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstPranav J
I have confirmed this with the engineering team.
Custom Endpoints are not attached to an Entity class, for that reason we don’t provide a built-in solution in this case. You can definitely create an init method (as discussed earlier) or a custom parser for this scenario, or use an object mapper library of your choice.
You can also explore the 3.x version of the SDK where it would be a little easier to do the conversion since there is a better object mapping support built into the library.
http://devcenter.kinvey.com/ios-v3.0/downloads#
Thanks,
Pranav
Kinvey Support
-
Why do I get "Undefined symbols" errors when building with KinveyKit?
-
How do I register push tokens?
-
When using social login, to perform a log-out, do I need to log out of the social network, Kinvey, o
-
How can I assign additional properties to users?
-
Does KinveyKit support 64-bit ARM devices, such as iPhone 5s?
-
Authorization Token Invalid or Expired
-
BOOL and how it is stored in the database.
-
Offline saving throwing errors
-
Custom endpoint not able to form request object
-
Security through business logic
See all 437 topics