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 a custom field in the User Class labeled "groupId". I would like to query the User Class for all users with a certain groupId. Can you share the special syntax that is required to query custom fields within the User class?
Best Answer
P
Pranav J
said
over 6 years ago
Matt,
You are talking about custom user class. Datastore queries will work in the same way for regular and custom user class. Adding a custom type also requires that you downcast any User objects returned by the library to your CustomUser type, in order to use the properties of the custom type.
Following is the code which is used for downcasting of user object:
To be clear, I'm talking about Kinvey's special User Class. The link above appears to link to the standard datastore querying. Do you have a sample code snippet of query on Kinvey's User Class so that I can see how that syntax is structured in the new version 3.0?
P
Pranav J
said
over 6 years ago
Answer
Matt,
You are talking about custom user class. Datastore queries will work in the same way for regular and custom user class. Adding a custom type also requires that you downcast any User objects returned by the library to your CustomUser type, in order to use the properties of the custom type.
Following is the code which is used for downcasting of user object:
Matt
I have a custom field in the User Class labeled "groupId". I would like to query the User Class for all users with a certain groupId. Can you share the special syntax that is required to query custom fields within the User class?
You are talking about custom user class. Datastore queries will work in the same way for regular and custom user class. Adding a custom type also requires that you downcast any User objects returned by the library to your CustomUser type, in order to use the properties of the custom type.
Following is the code which is used for downcasting of user object:
Please check http://devcenter.kinvey.com/ios/guides/users#UserClass for better understanding of custom user.
Thanks,
Pranav
Kinvey
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstPranav J
Please take a look at http://devcenter.kinvey.com/ios/guides/datastore#Querying.
Thanks,
Pranav
Kinvey
Matt
To be clear, I'm talking about Kinvey's special User Class. The link above appears to link to the standard datastore querying. Do you have a sample code snippet of query on Kinvey's User Class so that I can see how that syntax is structured in the new version 3.0?
Pranav J
You are talking about custom user class. Datastore queries will work in the same way for regular and custom user class. Adding a custom type also requires that you downcast any User objects returned by the library to your CustomUser type, in order to use the properties of the custom type.
Following is the code which is used for downcasting of user object:
Please check http://devcenter.kinvey.com/ios/guides/users#UserClass for better understanding of custom user.
Thanks,
Pranav
Kinvey
-
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