Membrane Functions implement business logic inside Membrane Elements.Documentation Index
Fetch the complete documentation index at: https://docs.getmembrane.com/llms.txt
Use this file to discover all available pages before exploring further.
Function Types
Functions can be implemented in one of the following ways depending on where the function is used:Core Implementation Function Types
- Mapping – Transform input data using JSONata expressions without making API calls
- REST API Mapping – Map to REST API endpoints
- JavaScript – Write custom code for maximum flexibility
- GraphQL API Mapping – Map to GraphQL API endpoints
Data Collection Action Function Types
- list-data-records – List records in a data collection page by page
- find-data-record-by-id – Find a record in a data collection by ID
- search-data-record – Search data records by a query string
- match-data-record – Find a data record with fields matching a query
- create-data-record – Create a new data record
- update-data-record – Update an existing data record
- delete-data-record – Delete a data record by id
API Request Action Function Types
- api-request-to-external-app – Make API requests to the external service
- api-request-to-your-app – Make API requests to your internal API
- http-request – Make arbitrary HTTP requests to any endpoint
Code Execution Action Function Types
- JavaScript – Run custom JavaScript/TypeScript code (includes
run-javascriptaction type)
Flow Node Function Types
- run-action – Run predefined actions
Special Function Types
not-supported– Mark function as not supported by the external API