@sanity/client 6.0.1 → 6.1.0-perspective.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.
@@ -834,6 +834,12 @@ function _requestObservable(client, httpRequest, options) {
834
834
  ...options.query
835
835
  };
836
836
  }
837
+ if (typeof config.perspective === "string" && config.perspective !== "all") {
838
+ options.query = {
839
+ perspective: config.perspective,
840
+ ...options.query
841
+ };
842
+ }
837
843
  if (config.resultSourceMap) {
838
844
  options.query = {
839
845
  resultSourceMap: true,