Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

Commit

Permalink
Add DRAFT Usergrid 2.1.0 deployment guide and upgrade website to use …
Browse files Browse the repository at this point in the history
…Nanoc 4.
  • Loading branch information
snoopdave committed Feb 4, 2016
1 parent 8bead20 commit 3fbb7d4
Show file tree
Hide file tree
Showing 20 changed files with 1,727 additions and 7,256 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -6,6 +6,7 @@ target
# Icon must ends with two \r.
Icon

/website/tmp

# Thumbnails
._*
Expand Down Expand Up @@ -89,4 +90,4 @@ sdks/dotnet/samples/notifications/packages/*


/stack/rest_integration_tests/node_modules
/stack/rest_integration_tests/config/override.js
/stack/rest_integration_tests/config/override.js
2 changes: 1 addition & 1 deletion content/community/index.html
Expand Up @@ -403,7 +403,7 @@ <h2 class="icns-group" id="committers"><span>Committers</span></h2>
<p>George Reyes</p>
</div>
<div class="col-md-2 text-center">
<img src="/img/mike_d.jpg" />
<img src="/img/miked.jpg" />
<p>Mike Dunker</p>
</div>
<div class="col-md-2 text-center">
Expand Down
25 changes: 20 additions & 5 deletions content/docs/_sources/data-queries/operators-and-types.txt
Expand Up @@ -40,6 +40,11 @@ The following operators and data types are supported by the SQL-like query langu
<td>Subtraction of results</td>
<td>select * where quantity < '4000' and not quantity = '2000'</td>
</tr>
<tr>
<td>contains</td>
<td>Narrow by contained text</td>
<td>select * where title contains 'tale'</td>
</tr>
<tr>
<td>and</td>
<td>Union of results</td>
Expand All @@ -50,14 +55,24 @@ The following operators and data types are supported by the SQL-like query langu
<td>Intersection of results</td>
<td>select * where quantity = '1000' or quantity = '4000'</td>
</tr>
<tr>
<td>contains</td>
<td>Narrow by contained text</td>
<td>select * where title contains 'tale'</td>
</tr>
</table>


### Precedence

The operators at the bottom of the above table are the ones with lower precedence.
When a query is evaluated the comparison operators (=, > , <, <= and >=) will be evaluated first.
And next "not", "contains" and "or" will be evaluated and in that order.

Though they are not shown above, parentheses are allowed and may be used to group query expressions.

For example, given our rules of precedence, these two queries are equivalent:

select * where age > 6 or size = 'large' and color = 'tabby'

select * where (age > 6 or size = 'large') and color = 'tabby'


## Data types

As you develop queries, remember that entity properties each conform to a particular data type. For example, in the default entity User, the name property is stored as a string, the created date as a long, and metadata is stored as a JSON object. Your queries must be data type-aware to ensure that query results are as you expect them to be.
Expand Down

0 comments on commit 3fbb7d4

Please sign in to comment.