Skip to content

Instantly share code, notes, and snippets.

@joepie91
Created July 3, 2020 20:54
Show Gist options
  • Select an option

  • Save joepie91/44d8f8a94f1642cf4b8f8c2049e82b95 to your computer and use it in GitHub Desktop.

Select an option

Save joepie91/44d8f8a94f1642cf4b8f8c2049e82b95 to your computer and use it in GitHub Desktop.

Revisions

  1. joepie91 revised this gist Jul 3, 2020. 1 changed file with 3 additions and 19 deletions.
    22 changes: 3 additions & 19 deletions raqb.js
    Original file line number Diff line number Diff line change
    @@ -1,25 +1,9 @@
    query = select("projects", [
    anyOf([
    where({
    number_one: niceNumbers,
    number_two: niceNumbers
    }),
    where({
    number_three: anyOf([ 42, column("number_one") ]),
    number_four: moreThan(1337)
    })
    ])
    ]);



    query = select("projects", anyOf([
    where({
    where(anyOf([{
    number_one: niceNumbers,
    number_two: niceNumbers
    }),
    where({
    }, {
    number_three: anyOf([ 42, column("number_one") ]),
    number_four: moreThan(1337)
    })
    }]))
    ]));
  2. @antishok antishok created this gist Jul 3, 2020.
    25 changes: 25 additions & 0 deletions raqb.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    query = select("projects", [
    anyOf([
    where({
    number_one: niceNumbers,
    number_two: niceNumbers
    }),
    where({
    number_three: anyOf([ 42, column("number_one") ]),
    number_four: moreThan(1337)
    })
    ])
    ]);



    query = select("projects", anyOf([
    where({
    number_one: niceNumbers,
    number_two: niceNumbers
    }),
    where({
    number_three: anyOf([ 42, column("number_one") ]),
    number_four: moreThan(1337)
    })
    ]));