@taruvi/sdk 1.5.0-beta.0 → 1.5.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taruvi/sdk",
3
- "version": "1.5.0-beta.0",
3
+ "version": "1.5.0-beta.1",
4
4
  "description": "Taruvi SDK",
5
5
  "main": "src/index.ts",
6
6
  "type": "module",
@@ -161,6 +161,14 @@ export class Database<T = Record<string, unknown>> {
161
161
  }, { ...this.graphParams }, this.isEdges)
162
162
  }
163
163
 
164
+ /** Restrict SELECT to named columns (`?fields=a,b,c`). */
165
+ fields(columns: string): Database<T> {
166
+ return new Database<T>(this.client, { ...this.urlParams }, undefined, undefined, {
167
+ ...this.queryParams,
168
+ fields: columns
169
+ }, { ...this.graphParams }, this.isEdges)
170
+ }
171
+
164
172
  allowedActions(actions: string[]): Database<T> {
165
173
  return new Database<T>(this.client, { ...this.urlParams }, undefined, undefined, {
166
174
  ...this.queryParams,