Dataset filter by another dataset by code in Coding with Velo

This little example shows you how to set a filter programmatically, …

import wixData from 'wix-data';

$w("#myDataset").setFilter( wixData.filter()
  .startsWith("lastName", "D")
  .ge("age", "21")
);
  1. Do not forget to put all your code into → onReady()-code-section
  2. Do not forget to add onRady()-code-part when working with datasets.

There are even more points to take care of when working with code and generating filtration.

Learn step by step.

By the way…

a) ge stnds for GREATER THAN…
b) startsWith, i think you will recognize this filter-functionality on your own.
c) there are of course even some more options you can filter for…