Skip to content

Instantly share code, notes, and snippets.

@temich
Last active May 23, 2025 14:11
Show Gist options
  • Save temich/6bc5c89134354caea6423bdf153074c7 to your computer and use it in GitHub Desktop.
Save temich/6bc5c89134354caea6423bdf153074c7 to your computer and use it in GitHub Desktop.

Assumptions

Entities and relationships:

  • Kitchen: id, title
  • Spoon: id, title, kitchen_id

JS SDK

Can be used in any environment by any bydlo.

const kitchens = await api.kitchens.get(filter, options)
const spoonsJoinedWithKitchens = await api.kitchens.get(filter, { projection: ['id', 'title', 'kitchen_id.title'] })

JS UI Kit

<script src="..." />

Tables

For those of bydlo who can't see sharp.

<table data-source="spoons" data-filter="..." data-options="">
  <tr>
    <th data-name="id"></td>
    <th data-name="title"></td>
    <th data-name="kitchen_id.title"></td>

Forms

<form data-source="spoons" method="POST">
  <input name="title" />
  <select name="kitchen_id" data-source="kitchens" data-filter="..." data-value="id" data-label="title" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment