-
Notifications
You must be signed in to change notification settings - Fork 12
methods
Eric Luce edited this page Jun 25, 2024
·
1 revision
The following methods are available for all adapters.
-
listreturn all records from a given layout -
findperform a FileMaker find -
getreturn a single record by recordID -
createreturn a new record -
updatemodify a single record by recordID -
deletedelete a single record by recordID
This package also includes some helper methods to make working with Data API responses a little easier:
-
findOnereturn the first record from a find instead of an array. This method will error unless exactly 1 record is found. -
findFirstreturn the first record from a find instead of an array, but will not error if multiple records are found. -
findAllreturn all found records from a find, automatically handling pagination. Use caution with large datasets! -
listAllreturn all records from a given layout, automatically handling pagination. Use caution with large datasets!
The first-party FetchAdapter and OttoAdatper both share the following additional methods from the BaseFetchAdapter:
-
executeScriptexecute a FileMaker script directly -
layoutMetadatareturn metadata for a given layout -
layoutsreturn a list of all layouts in the database (top-level layout key ignored) -
scriptsreturn a list of all scripts in the database (top-level script key ignored) -
globalsset global fields for the current session (top-level globals key ignored)
If you have your own proxy, you can write your own Custom Adapter that extends the BaseFetchAdapter to also implement these methods.
-
disconnectforcibly logout of your FileMaker session
No additional methods