Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用cloudant nano返回与选择器匹配的文档_Cloudant - Fatal编程技术网

使用cloudant nano返回与选择器匹配的文档

使用cloudant nano返回与选择器匹配的文档,cloudant,Cloudant,选择器是一个对象,用于描述查询的where部分。我试过db.list函数,但它不支持选择器 cloudant的数据库管理工具有一个查询功能,您可以输入选择器、字段和排序,然后将其删除。我猜它使用的是\u find,而不是\u all\u docs。(对吗?) 我在nano代码中找不到。直接调用它很容易,在这种情况下,我想访问relax来执行http调用 1) 选择器是否应该在db.list上工作? 2) 我正在使用typescript,如何设置使用http的relax方法?考虑使用Cloudan

选择器是一个对象,用于描述查询的where部分。我试过db.list函数,但它不支持选择器

cloudant的数据库管理工具有一个查询功能,您可以输入选择器、字段和排序,然后将其删除。我猜它使用的是
\u find
,而不是
\u all\u docs
。(对吗?)

我在nano代码中找不到。直接调用它很容易,在这种情况下,我想访问
relax
来执行http调用

1) 选择器是否应该在db.list上工作?
2) 我正在使用typescript,如何设置使用http的relax方法?

考虑使用Cloudant库而不是Nano——Cloudant的节点库是Nano的一个薄包装,让您可以访问特定于Cloudant的内容。请参见

只需阅读文档。。。我知道如何获得请求函数。