MemberExpand enum allows you to selectively fetch related member information, optimizing performance by only loading the data you need.
Overview
When fetching members, you can specify which nested structures should be populated using theMemberExpand enum. This is especially useful when dealing with large datasets where you only need specific information.
Enum Cases
Expand employment information including status, organization, occupation, and sector.When expanded, the member’s
employmentInformation property will be populated with:- Employment status (employed, student, retired, etc.)
- Name of organization
- Occupation category and subcategory
- Employment sector
Expand contact information including phone, email, address, and communication preferences.When expanded, the member’s
contactInformation property will be populated with:- Primary phone number
- Email address
- Physical address and area
- WhatsApp number
- Alternate phone number
- Profession and location
Expand marital information including status, anniversary, spouse, and children.Note: This is spelled “martialInformation” in the API for backward compatibility.When expanded, the member’s
maritalInformation property will be populated with:- Marital status
- Wedding anniversary date with rich calculations
- Spouse name
- Number of children
Expand discipleship and spiritual information.When expanded, the member’s
discipleshipInformation property will be populated with:- Born again date
- Water baptism status and date
- Prayer course completion
- Foundation course completion
- Life transformation camp attendance
- Holy Spirit filling experience
- Missionary involvement
- YouTube and WhatsApp subscription status
- Serving and ministry involvement
- Bible course progress
Usage Examples
Fetch Single Field
Fetch Multiple Fields
Fetch All Fields
Fetch Multiple Members with Expansion
Performance Considerations
When to Expand Fields
Expand fields when:- You need specific nested information for your use case
- You’re fetching a small number of members
- The additional data is essential for your application logic
- You only need basic member information
- You’re fetching large numbers of members
- You want to minimize network payload and processing time
Example: Optimized Fetching
Raw Value
Each case has a string raw value matching the API field name:See Also
- Member - Member struct with all properties
- MembersHandler - Methods for fetching members
- ContactInformation - Contact details structure
- EmploymentInformation - Employment details structure
- MaritalInformation - Marital details structure
- DiscipleshipInformation - Spiritual journey structure
