Skip to content

Instantly share code, notes, and snippets.

@reidev275
Created February 25, 2020 18:34
Show Gist options
  • Save reidev275/5a7072e40c79cf45e72d368acf57227a to your computer and use it in GitHub Desktop.
Save reidev275/5a7072e40c79cf45e72d368acf57227a to your computer and use it in GitHub Desktop.
const query: Filter<JobPosting> = and(
equals("manager", "Bob Slydell"),
greater("salary", 50000)
);
console.log(
interpretToSql(query)
)
// ([manager] = 'Bob Slydell' and [salary] > '50000')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment