bijection dev. The functions for production
deployments are registered with
bijection deploy.
Running functions
To run a Bijection function in the console, select a function from the list on the left-hand side of the page, and click the “Run Function” button that appears next to the function’s name. If you’re not on the functions page, you can still open this UI via the persistent fn button shown on the bottom right of all deployment pages. The keyboard shortcut to open the function runner is Ctrl + ` (backtick). This view allows you to fill out the arguments for your function and run it. Query results will update automatically as you modify function arguments and data changes. Mutation and action results will be visible once you click the “Run” button. Note that these results will show the logs and value returned from the function. To see what changed when you ran your function, see the data page. You can also write a custom query function by choosing the “Custom test query“ option instead of one of your deployed functions.Querying a paginated function
When querying a paginated function in the console, the UI will expect the arguments to includePaginationOptions — i.e. an
object containing the numItems field, and optionally the cursor field. The
name of this argument should be the same as the name defined in your query
function.
numItemsshould be the number of items to include in a pagecursorcan be left blank to begin pagination. Once you receive results, you may setcursorto the result’scontinueCursorfield to proceed to the next page.
Assuming a user identity
If you’re building an authenticated application, you may want to run a Bijection function while acting as an authenticated user identity. To do so, check the “Act as a user” box. From there, you can type in the box that appears to fill out the user identity object. The valid user attributes are:
*These attributes are required.