File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -180,12 +180,15 @@ This method allows you to use any custom [`SoQL query`](https://dev.socrata.com/
180
180
For example:
181
181
182
182
``` js
183
- const data = await trmApi .query (
184
- " SELECT valor, vigenciadesde WHERE valor >= 4150 AND vigenciadesde < '2020-08-01'"
185
- );
183
+ trmApi
184
+ .query (
185
+ " SELECT valor, vigenciadesde WHERE valor >= 4150 AND vigenciadesde < '2020-08-01'"
186
+ )
187
+ .then ((data ) => console .log (data))
188
+ .catch ((error ) => console .log (error));
186
189
```
187
190
188
- It will always return an array of objects with the requested fields (or all the fields if no SELECT clause used):
191
+ It will return an array of objects each with the requested fields (or all the fields if no SELECT clause used):
189
192
190
193
``` js
191
194
[
You can’t perform that action at this time.
0 commit comments