You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/typedef.js
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,34 +1,34 @@
1
1
//typedef
2
2
/**
3
3
*@typedef {Object} DocParamsGet - the GET document interface query parameters
4
-
*@property {string} [graph_type=instance] - instance|schema default value is instance. Used to switch between getting documents from the instance or the schema graph.
4
+
*@property {GraphType} [graph_type] - instance|schema, default value is instance. Used to switch between getting documents from the instance or the schema graph.
5
5
*@property {string} [type] - only documents of the given type are returned.
6
6
*@property {string} [id] - only the document with the given ID is returned.
7
-
*@property {boolean} [prefixed=true] - return IRIs using a prefixed notation wherever possible. If false, full IRIs are used.
8
-
*@property {boolean} [minimized=false] - return the documents with very little whitespace. Each json document will be on its own line.
9
-
*@property {boolean} [unfold=true] - any subdocuments contained in the returned document are returned too. If false, these are referred to by their ID instead.
10
-
*@property {number} [skip=0] - How many results to skip
7
+
*@property {boolean} [prefixed] - default is true, return IRIs using a prefixed notation wherever possible. If false, full IRIs are used.
8
+
*@property {boolean} [minimized] - default is false, return the documents with very little whitespace. Each json document will be on its own line.
9
+
*@property {boolean} [unfold] - default is false, any subdocuments contained in the returned document are returned too. If false, these are referred to by their ID instead.
10
+
*@property {number} [skip] - default is 0, How many results to skip
11
11
*@property {number} [count] count - How many results to return. If this option is absent, all results are returned.
12
-
*@property {boolean} [as_list=false] If true, don't return a stream of json objects, but a json list.
12
+
*@property {boolean} [as_list] default is false, If true, don't return a stream of json objects, but a json list.
13
13
*@property {string} [graph_type] - instance|schema default value is instance
14
14
*/
15
15
16
16
/**
17
17
*@typedef {Object} DocParamsPost - the POST document interface query parameters
18
-
*@property {string} [graph_type=instance] - instance|schema Used to switch between getting documents from the instance or the schema graph.
19
-
*@property {boolean} [full_replace=false] - If true, all existing documents are deleted before inserting the posted documents. This allows the full replacement of the contents of a database. This is especially useful for replacing the schema.
18
+
*@property {GraphType} [graph_type] - default is instance instance|schema Used to switch between getting documents from the instance or the schema graph.
19
+
*@property {boolean} [full_replace] - default is false, If true, all existing documents are deleted before inserting the posted documents. This allows the full replacement of the contents of a database. This is especially useful for replacing the schema.
20
20
*/
21
21
22
22
/**
23
23
*@typedef {Object} DocParamsPut - the PUT document interface query parameters
24
-
*@property {string} [graph_type=instance] - instance|schema Used to switch between getting documents from the instance or the schema graph.
24
+
*@property {GraphType} [graph_type] - default is instance, instance|schema Used to switch between getting documents from the instance or the schema graph.
25
25
*/
26
26
27
27
/**
28
28
*@typedef {Object} DocParamsDelete - the DELETE document interface query parameters
29
-
*@property {string} [graph_type=instance] - instance|schema Used to switch between getting documents from the instance or the schema graph.
29
+
*@property {GraphType} [graph_type] - default is instance, instance|schema Used to switch between getting documents from the instance or the schema graph.
30
30
*@property {string|array} id - a single id or a list of ids to delete.
31
-
*@property {booleam} [nuke=false] - If true, delete everything at this resource location (dangerous!).
31
+
*@property {booleam} [nuke] - default is false, If true, delete everything at this resource location (dangerous!).
* Retrieves a list of databases (id, organization, label, comment) that the current user has access to on the server. Note that this requires the client to call connect() first.
162
+
* @param {array} [orgList] a list of databases the user has access to on the server, each having:
0 commit comments